Click or drag to resize

BrepFaceRefitTrim Method (BrepEdge, IEnumerableDouble, Int32, Boolean, Double, Line, RefitTrimFailure)

Refits this face so that a trimmed edge becomes an untrimmed side, and re-applies the face's other trims to the refit surface. Unlike RefitTrim(BrepEdge, IEnumerableDouble, Double, Boolean, Double), this works on faces trimmed on more than one side.

Namespace:  Rhino.Geometry
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public Brep RefitTrim(
	BrepEdge edge,
	IEnumerable<double> knots,
	int degree,
	bool bezierSections,
	double tolerance,
	out Line maxDeviation,
	out RefitTrimFailure failure
)

Parameters

edge
Type: Rhino.GeometryBrepEdge
An edge of this face's outer loop, from the same Brep. Its trim must run across the face in U or V without turning back. The face may have only one loop.
knots
Type: System.Collections.GenericIEnumerableDouble
Knots to add in the direction the edge runs across the face, as normalized parameters from 0 to 1. Empty or null keeps the surface's knots.
degree
Type: SystemInt32
The minimum degree of the refit surface in that direction; 0 keeps the surface's degree.
bezierSections
Type: SystemBoolean
If true, the result has one face per span of the refit surface in that direction.
tolerance
Type: SystemDouble
The 3d tolerance for projection, splitting, and fitting.
maxDeviation
Type: Rhino.GeometryLine
The largest deviation of the result from this face: from the new side to edge, or from a re-applied edge to the trimmed edge it replaces. Unset when it could not be measured.
failure
Type: Rhino.GeometryRefitTrimFailure
Why no Brep was returned; None on success.

Return Value

Type: Brep
A Brep with one face, or one face per section; or null on failure.
See Also