Click or drag to resize

BrepCreatePatch Method (IEnumerableGeometryBase, Int32, Int32, Double)

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)
Since: 5.0
public static Brep CreatePatch(
	IEnumerable<GeometryBase> geometry,
	int uSpans,
	int vSpans,
	double tolerance


Type: System.Collections.GenericIEnumerableGeometryBase
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.
Type: SystemInt32
The number of spans in the U direction.
Type: SystemInt32
The number of spans in the V direction.
Type: SystemDouble
Tolerance used by input analysis functions for loop finding, trimming, etc.

Return Value

Type: Brep
A brep fit through input on success, or null on error.
See Also