M_Rhino_Geometry_Brep_CreatePatch_2 - mcneel/rhinocommon-api-docs GitHub Wiki
Constructs a brep patch. This is the simple version of fit that uses a plane with u x v spans. It makes a plane by fitting to the points from the input geometry to use as the starting surface. The surface has the specified u and v span count.
Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll) Version: Rhino 6.0
C#
public static Brep CreatePatch(
IEnumerable<GeometryBase> geometry,
int uSpans,
int vSpans,
double tolerance
)
VB
Public Shared Function CreatePatch (
geometry As IEnumerable(Of GeometryBase),
uSpans As Integer,
vSpans As Integer,
tolerance As Double
) As Brep
- geometry
- Type: System.Collections.Generic.IEnumerable(GeometryBase)
A combination of curves, brep trims, points, point clouds or meshes. Curves and trims are sampled to get points. Trims are sampled for points and normals. - uSpans
- Type: System.Int32
The number of spans in the U direction. - vSpans
- Type: System.Int32
The number of spans in the V direction. - tolerance
- Type: System.Double
Tolerance used by input analysis functions for loop finding, trimming, etc.
Type: Brep
A brep fit through input on success, or null on error.
Supported in: 6.0.16224.21491, 5D58w