algorithmic modeling for Rhino
Hi,
How can I get closest naked edge of surface to u v?
I found this function:
IsosStatus iso = MySurface.ClosestSide(u1,v1);
but when I press dot . there are only methods like toString, Equals,
What is a proper way of getting closest naked edge of the surface?
Tags:
I think IsoStatus is intended for use with .Extends() method, or perhaps some more. I mean, it's not what you want.
Look for the closest one from the collection of naked edges.
Curve[] MyNakedEdges = MySurface.ToBrep().DuplicateNakedEdgeCurves(true, false);
double minDist = double.MaxValue;
Curve closestEdge = null;
foreach(Curve ne in MyNakedEdges){
double t;
ne.ClosestPoint(pt, out t);
double dist = pt.DistanceTo(ne.PointAt(t));
if(dist<minDist){
minDist = dist;
closestEdge = ne;
}
}
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