I’ve ran out of ideas, can you help me on this

How can i make the rectangular profiles align along the perpendicular vectors and make them stand vertically( image supplied) thanks in advance




file1.3dm (54.9 KB)
file2.gh (7.4 KB)

this could be one way:

rectangles.gh (13.4 KB)

3 Likes

Your approach was not directly the fix im trying to achieve, but it helped me to find the solution. i used the rectangles to orient a non rectangular profile and it worked well. thanks and regards

1 Like

1 Like

Hi, you can remove some unnecessary components.

1 Like

Steps eh? Who would have guessed? :roll_eyes:


steps_2025Jul5a.gh (8.0 KB)

Geometry is internalized, no need for Rhino file.

P.S. To make matters worse, your Rhino file hides the fact that the pattern rectangle is not square with ‘World XY’ :interrobang: :-1: How (and why) did you do that :question:

I wondered why Orient failed, forcing me to use Dim. (Dimensions) :nauseated_face:

What a needless hassle :bangbang:


steps_2025Jul5bb.gh (10.1 KB)

:roll_eyes:


steps_2025Jul5c.gh (10.9 KB)

1 Like

I suggest you deconstruct your vectors and you can see what the operations are doing to the z component of your vector. Your orient will not work as you want because of that. The cross product does not lead to the vector you need from what I understand. When using the orient it is best to locate the insertion point at the exact position you need. That avoids some moving later. In a case like this that math may not be obvious.

1 Like

i agree, i havent explored those parts yet, ill update on this soon with my spare time. about the cross product part, i wanted to keep the vectors perpendicular to the entire line while still locked on the horizontal axis so i can use that vector as a base for the orientation and rotation, im stuck on that part

huge thanks to this, it will be very helpful on my future projects

I understand what you are trying to do with your vectors. You should rotate the vector instead of using a cross product. I believe you want the profile perpendicular to the curve at these points. Using the cross product will result in an odd extrusion.

There are certain details that are common to all stairs, especially spiral stairs. For one thing, contour guarantees that all steps have the same height (“rise”). Divide curve doesn’t do that, especially when the curve doesn’t have constant slope..

Many examples on this forum. Don’t re-invent the wheel.
https://discourse.mcneel.com/search?q=spiral%20stairs