BrepCreateVariationalPatch Method (RhinoDoc, IEnumerableBrepCurveConstraint, IEnumerableBrepCurveConstraint, IEnumerableBrepPointConstraint, BrepVariationalPatchSettings, Boolean, CancellationToken, IProgressDouble, BrepVariationalPatchResult) |
Create a patch using variational approach
Namespace:
Rhino.Geometry
Assembly:
RhinoCommon (in RhinoCommon.dll)
Syntaxpublic static Brep CreateVariationalPatch(
RhinoDoc doc,
IEnumerable<BrepCurveConstraint> edges,
IEnumerable<BrepCurveConstraint> internalCurves,
IEnumerable<BrepPointConstraint> points,
BrepVariationalPatchSettings settings,
bool multiThreading,
CancellationToken cancelToken,
IProgress<double> progress,
out BrepVariationalPatchResult results
)
Public Shared Function CreateVariationalPatch (
doc As RhinoDoc,
edges As IEnumerable(Of BrepCurveConstraint),
internalCurves As IEnumerable(Of BrepCurveConstraint),
points As IEnumerable(Of BrepPointConstraint),
settings As BrepVariationalPatchSettings,
multiThreading As Boolean,
cancelToken As CancellationToken,
progress As IProgress(Of Double),
<OutAttribute> ByRef results As BrepVariationalPatchResult
) As Brep
Parameters
- doc
- Type: RhinoRhinoDoc
The Rhino document. Use null if not available. - edges
- Type: System.Collections.GenericIEnumerableBrepCurveConstraint
Edges with continuity constraints - internalCurves
- Type: System.Collections.GenericIEnumerableBrepCurveConstraint
Internal curves - points
- Type: System.Collections.GenericIEnumerableBrepPointConstraint
Internal points - settings
- Type: Rhino.GeometryBrepVariationalPatchSettings
The settings to use while creating the surface - multiThreading
- Type: SystemBoolean
Use multi-threading during the calculation - cancelToken
- Type: System.ThreadingCancellationToken
The cancellation token. - progress
- Type: SystemIProgressDouble
The provider for progress updates. - results
- Type: Rhino.GeometryBrepVariationalPatchResult
The results of the patching algorithm.
Return Value
Type:
BrepTrimmed surface if successful, null otherwise
See Also