algorithmic modeling for Rhino
Hello all,
Quick question, but I have been looking for this answer for awhile. Say I construct a plane, how do I place a point on that plane wherever I want? Is there a way to input "x:4 y:6" or "x:-10, y:100"?
To do this I have been creating a surface and then doing things like creating a uv grid, but is there a way to skip that and just input coordinates into a plane?
Thanks!
Tags:
Get this as well if you decide to cross the Rubicon some day in the future (it's in C#).
Anyway:
1. A point in a "local" coordinate system (plane) is : Point3d p = pOrg + x * pX + y * pY + z * pZ;
where pOrig is the local origin, x,y,z are the local coordinates and pX,Y,Z are the unitized axis coordinate system's vectors.
2. The classic "conversion" using matrices is (see inside C#): where x,x.z are the world coordinates, u123,v123,w123 are the local vectors x,y,z values ("along" rows) and o123 are the local origin x,y,z values.
3: Bonus: 2 challenges for the brave are (as usual) included.
best, Peter
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by