I’m trying to do the equivalent of PlanarSrf using RhinoCommon, and I’ve come across an issue.
So far I’m using Brep.CreatePatch() to do it, and it works - EXCEPT if the closed curve in question self intersects (like an inward loop).
The Patch result looks fine in Wireframe, but when I go to any other view I get a weird polygon of some sort that doesn’t fit the border I see in the Wireframe view.
If I extract the border from this failed Patch, and use PlanarSrf, the desired result appears.
How can I duplicate that result using Rhinocommon?