c#_Curve inside Close Curve_RegionContainment

(OmKar) #1

I am trying to check if the curve is inside closed curve. However bool value is always coming false.
Any help is appreciated. Attached code and picture below

bool inside = false;

var gc = Rhino.Geometry.RegionContainment.BInsideA; //or AinsideB , its always false

if(Curve.PlanarClosedCurveRelationship(iBd, iPath, Plane.WorldXY, 0.01) == gc)
  inside = true;

A = inside;

(Dale Fugier) #2

Hi @obhagwat29,

Can you post some geometry that isn’t providing the results you expect?

– Dale

(OmKar) #3

In mean time I solved the issue with PointContainment. However will try to post a geometry once I find time.