Hello everyone, I’m trying to get the intersecting curves between a brep and a plane.
The command I’m using is this:
Intersection.BrepPlane(PSBrep, p, CurrentDocument.ModelAbsoluteTolerance, out topCurves, out topPoints);
- PSBrep and p are the brep object and a plane with origin on (0,0,-750) and dir (0,0,1)
- CurrentDocument is a stored reference to my active doc
- topCurves and topPoints are two arrays of curves and point3d
Launching the command results in 2 curves instead of 1. If I manually create the plane and launch the
Intersect command I get the expected single curve.
The only parameter that I think could make a difference would be the tolerance, but I checked and ModelAbsoluteTolerance is 0.001, the same number I get in the UI when I launch the
Am I missing something else?