Grasshopper

algorithmic modeling for Rhino

How does the 'DePlane' (deconstruct plane) component choose the x and y axes?

I create a plane from a point A and a normal vector N ('plane normal' component).

Afterwards, I plug this plane into a  'DePlane' (deconstruct plane) component, and a pair of axes X,Y (they are really vectors) is provided as a result.

However, there are infinite pairs of possible X,Y axes, all of them contained in this plane. How does Gh select the particular one? I have been trying (and failed) to figure out some mathematical construct...

Any help, please?

Views: 1204

Replies to This Discussion

This is ultimately Rhino functionality. I think it tries to compute the cross product between the normal and the world Z which then becomes the X axis. If the normal is already vertical then some other initial axis is picked instead. I'm not entirely sure about the order in which directions are tried though.

Many thanks!  I'll try to reproduce this on Gh and see what I get.

RSS

About

Translate

Search

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service