Trouble mapping brep rotation to the rotation of another brep

Hi there! I’m new to grasshopper and am having trouble applying the same rotation to the trapezoidal shape as the top box. It seems to rotate, but at a different rate, making it become slightly disconnected and no longer flush with the box.


ParametricModel2.gh (28.0 KB)

the small blue box is created from a Rectangle (A) created on previous box (B) Edge at index 7 (C) evaluated at 88.5% of its length (D) → which defines a Point

because Rectangle actually wants a Plane, and a Point is supplied instead, that Point is automatically translated into the Origin of a new YX Plane:

if you want to have that blue box to have same rotation of the previous one, you have to either rotate the box by the same angle of the previous one:

ParametricModel2_rotate_box.gh (31.2 KB)

or rotate the plane on which the starting Rectangle is built by the same angle as the previous one:

ParametricModel2_rotate_plane.gh (31.0 KB)

of the two options I would preferably go for the second, as it creates things directly in the right location :+1:

Thank you so much!!