ExtractSurface

Separates or copies a surface (face) or a copy of a surface from a polysurface.

Syntax

rhinoscriptsyntax.ExtractSurface (object_id, face_indices, copy=False)

rhinoscript.surface.ExtractSurface (object_id, face_indices, copy=False)

Parameters

Parameters

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.

Returns

List

The identifiers of the extracted surface objects if successful.

None

If not successful, or on error.

Example

import rhinoscriptsyntax as rs

obj = rs.GetObject("Select polysurface", rs.filter.polysurface, True)

if obj: rs.ExtractSurface(obj, 0)

Also See

BrepClosestPoint

IsSurface

IsPolysurface

SurfaceCount