Hi, i am trying to get relationship between two closed curves. As you can see in drawing, one curve contains the other, but "PlanarClosedCurveRelationship " returns mutualIntersection. Am I missing something? Thanks for help.
RegionContainment containment = RegionContainment.AInsideB;
Curve newCurve = obj.Geometry as Curve;
Plane plane = new Plane();
bool planeOp = newCurve.TryGetPlane(out plane);
if (obj.Id != cutoutObj.Id)
{
containment = Curve.PlanarClosedCurveRelationship(curve, newCurve, plane, 0);
switch (containment)
{
case RegionContainment.AInsideB:
allGood = true;
break;
case RegionContainment.BInsideA:
allGood = false;
break;
case RegionContainment.Disjoint:
allGood = false;
break;
case RegionContainment.MutualIntersection:
allGood = false;
break;
}
if (allGood)
break;
}
StructureCurvesOne.3dm (6.6 MB)