Caps planar holes in a surface or polysurface. For more details, see the Cap command in the Rhino help file.
rhinoscriptsyntax.CapPlanarHoles (surface_id)
rhinoscript.surface.CapPlanarHoles (surface_id)
surface_id |
Required. String or Guid. The identifier of the surface or polysurface to cap. |
Boolean |
True or False indicating success or failure. |
import rhinoscriptsyntax as rs
surface = rs.GetObject("Select surface or polysurface to cap", rs.filter.surface | rs.filter.polysurface)
if surface: rs.CapPlanarHoles( surface )