Brep Plane Intersection fails

In the context of a more extensive script, I need the intersection curves between a surface and the offset of the tangential planes of various points on said surface.

I have noticed that there are areas on the surface for which the Brep | Plane (Sec)
component does not give a reliable result for the intersection curves. It does not matter in which scale the operation is performed. Furthermore, Python could not determine the intersection curves using Rhino.Geometry.Intersect.Intersection.BrepPlane() either, just like Rhino itself after the geometry was baked.
What finally helped was to scale the surface from the intersection plane 1-dimensionally in the direction of the plane normal.

Now I have noticed with another surface that this unfortunately gives exactly the opposite result and scaling the surface means that the section curves are no longer found reliably in contrast to the non-scaled surface.

How can this behavior be explained, is it a bug in the intersection algorithm?

BrepPlaneIntersect.gh (308.2 KB) is a file with two exemplary surfaces, which either only provide the expected intersection curves when scaled or when not scaled, if anyone would like to take a look for themselves.

Thanks in advance :slight_smile:

Seems like bug