Separates or copies a surface (face) or a copy of a surface from a polysurface.
rhinoscriptsyntax.ExtractSurface (object_id, face_indices, copy=False)
rhinoscript.surface.ExtractSurface (object_id, face_indices, copy=False)
object_id |
Required. String or Guid. The polysurface object's identifier. |
face_indices |
Required. Number or list of numbers. The indices of faces to extract. |
copy |
Optional. Boolean. If True, the faces are copied. If False (Default), the faces are extracted. |
List |
The identifiers of the extracted surface objects if successful. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
obj = rs.GetObject("Select polysurface", rs.filter.polysurface, True)
if obj: rs.ExtractSurface(obj, 0)