algorithmic modeling for Rhino
hi,
this may be an easy question to answer but I couldn´t find how to solve it:
I am trying to get the closest parameter of a curve from a given point but in the SDK I didn´t find a method for Curve.ClosesParameterTo (only for lines, arcs, polylines and planes) and, when using the function ClosestPoint, I don´t manage to get the point (only the boolean). A silly example:
double param = 2.0;
A = curves[0].ClosestPoint(curves[0].PointAtStart, out param);
A = True;
any clues?
cheers
Tags:
double t;
if (!curves[0].ClosestPoint(curves[0].PointAtStart, out t)) { return; }
Point3d cp = curves[0].PointAt(t);
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
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by