Click or drag to resize

BrepTryConvertBrep Method

Attempts to convert a generic Geometry object into a Brep.

Namespace:  Rhino.Geometry
Assembly:  RhinoCommon (in RhinoCommon.dll)
public static Brep TryConvertBrep(
	GeometryBase geometry


Type: Rhino.GeometryGeometryBase
Geometry to convert, not all types of GeometryBase can be represented by BReps.

Return Value

Type: Brep
Brep if a brep form could be created or null if this is not possible. If geometry was of type Brep to begin with, the same object is returned, i.e. it is not duplicated.
Version Information

Rhino for Mac

Supported in: 5.4

Rhino for Windows

Supported in: 6.27
See Also