C# Is there any function in RH OR GH API that is simular to default GH componet PointsInCurve

I found hours in document and got nothing…

This one should do it: https://developer.rhino3d.com/api/RhinoCommon/html/M_Rhino_Geometry_Curve_Contains_2.htm

In case you like to write an own function. Assuming the curve is closed, planar and the point is living in the same plane: A point is in that curve, if an ray starting at the test point going in arbitrary direction is intersecting the curve odd times. If it’s even then its outside. A special case is if the curve partially overlays the ray, which may appear on polylines or degree 1 Nurbs…or if there are kinks and the ray hits that

1 Like

Thanks

1 Like