Creates a planar mesh from a closed, planar curve.
rhinoscriptsyntax.AddPlanarMesh ( object_id, delete_input=False )
rhinoscript.mesh.AddPlanarMesh ( object_id, delete_input=False )
object_id |
Required. String or Guid. The identifier of a closed, planar curve object. |
delete_input |
Optional. Boolean. If True, then the input curve will be deleted. If not specified or False (default), then the input curve will not be deleted. |
Guid |
Identifier of the new object if successful. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
obj = rs.GetObject("Select planar curves to build mesh", rs.filter.curve)
if obj: rs.AddPlanarMesh(obj)