M_Rhino_Geometry_Brep_TryConvertBrep - mcneel/rhinocommon-api-docs GitHub Wiki
Attempts to convert a generic Geometry object into a Brep.
Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll) Version: Rhino 6.0
C#
public static Brep TryConvertBrep(
GeometryBase geometry
)
VB
Public Shared Function TryConvertBrep (
geometry As GeometryBase
) As Brep
- geometry
- Type: Rhino.Geometry.GeometryBase
Geometry to convert, not all types of GeometryBase can be represented by BReps.
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.
Supported in: 6.0.16224.21491, 5D58w