c#_Curve inside Close Curve_RegionContainment

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;

Hi @obhagwat29,

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

– Dale

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