Transform a closedCurve into a planarSrf (Rhino.Geometry)

Hello everyone,

Any Idea how I can transform a closedCurve to a planarSrf by RhinoCommon? (Python coding needed)

this is your startingpoint:
make sure that the curve is planar

then create the surface

kind regards -tom

1 Like

Thank you very much, Tom.

Does it also work for rectangles? or circle??

yes for PolylineCurves - but not for Polylines
yes for ArcCurves - but not for Circles
check the inheritance of the classes.
the pure basic geometry (arc/circle/polyline) are not “general curves”.
See for example:

versus

check the great collection of samples

hope this helps. kind regards - tom

1 Like

Thank you.