AddPlanarMesh

Creates a planar mesh from a closed, planar curve.

Syntax

rhinoscriptsyntax.AddPlanarMesh ( object_id, delete_input=False )

rhinoscript.mesh.AddPlanarMesh ( object_id, delete_input=False )

Parameters

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.

Returns

Guid

Identifier of the new object if successful.

None

If not successful, or on error.

Example

import rhinoscriptsyntax as rs

obj = rs.GetObject("Select planar curves to build mesh", rs.filter.curve)

if obj: rs.AddPlanarMesh(obj)

Also See

IsCurveClosed

IsCurvePlanar