Creates a polygon mesh object based on a closed polyline curve object. The newly created polygon mesh object is added to the document.
rhinoscriptsyntax.MeshPolyline (polyline_id)
rhinoscript.curve.MeshPolyline (polyline_id)
polyline_id |
Required. String or Guid. The identifier of the polyline curve object. |
Guid |
The identifier of the new polygon mesh object if successful. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
polyline = rs.GetObject("Select a polyline", rs.filter.curve)
if polyline:
if rs.IsPolyline(polyline) and rs.IsCurveClosed(polyline):
rs.MeshPolyline( polyline )