RhinoCommon API
BrepCreateFromSurface Method |
Constructs a Brep from a surface. The resulting Brep has an outer boundary made
from four trims. The trims are ordered so that they run along the south, east,
north, and then west side of the surface's parameter space.
Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll)

public static Brep CreateFromSurface( Surface surface )
Public Shared Function CreateFromSurface ( surface As Surface ) As Brep
Parameters
- surface
- Type: Rhino.GeometrySurface
A surface to convert.
Return Value
Type: BrepResulting brep or null on failure.

Rhino for Mac
Supported in: 5.4Rhino for Windows
Supported in: 6.14