BrepFaceRefitTrim Method (BrepEdge, IEnumerableDouble, Int32, Boolean, Double, Line, RefitTrimFailure) |
Namespace:
Rhino.Geometry
Assembly:
RhinoCommon (in RhinoCommon.dll)
Syntaxpublic Brep RefitTrim(
BrepEdge edge,
IEnumerable<double> knots,
int degree,
bool bezierSections,
double tolerance,
out Line maxDeviation,
out RefitTrimFailure failure
)
Public Function RefitTrim (
edge As BrepEdge,
knots As IEnumerable(Of Double),
degree As Integer,
bezierSections As Boolean,
tolerance As Double,
<OutAttribute> ByRef maxDeviation As Line,
<OutAttribute> ByRef failure As RefitTrimFailure
) As Brep
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:
BrepA Brep with one face, or one face per section; or null on failure.
See Also