algorithmic modeling for Rhino
Tags:
Found those magic lines:
double y;
double x;
plane.ClosestParameter(plane.Origin + (Vector3d)centerPlane.ZAxis, out y, out x);
double num = System.Math.Atan2(y, x);
plane.Rotate(-num + 1.5707963267948966, plane.ZAxis, plane.Origin);
This does not minimize rotation but is a single line:
plane = New plane(plane.Origin, vector3d.CrossProduct(centerPlane.ZAxis, Plane.XAxis), centerPlane.ZAxis)
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