Trying to make a plane from a closed curve, the curve have self-intersecting.
In rhinoscriptsyntax I tried
tmp = rs.AddPlanarSrf(curve)
print tmp #None
In the rhino command:
PlanarSrf
I get
Sefl-intersecting input curves were found. Using curve boolean processing.?
If I press yes I get the correct surfaces.
My question is, which curve boolean processing are used when pressing yes? and what rhinoscriptsyntax is mimic it?
I have attach the curve that I am trying it on, this is just a demo curve. Need a method that work automatic on all sorts of curve, but alwaise in the x,y plane.
curve.3dm (23.7 KB)