Class PatchSetAPI
Last update: 16.07.2025Namespace: VM.API.Pre.FE
Assembly: VM.API.Pre.FE.dll
This class implements APIs to create patch set.
public static class PatchSetAPI
Inheritance
Extension Methods
LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType),
LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType),
LinkPropertyItemCache.GetLinkedObjects
Methods
CreatePatchset(MeshDocument, IEnumerable, string, ExpressionValueVariable?, ExpressionValueVariable?, SurfaceSmoothing, Color?)
Create
[NotNull(new string[] { "document", "patchIndexes" })]
public static Obj CreatePatchset(this MeshDocument document, IEnumerable<patch> patchIndexes, string name = "", ExpressionValueVariable? maxPenetration = null, ExpressionValueVariable? offset = null, SurfaceSmoothing surfaceSmoothing = SurfaceSmoothing.AUTOMATIC, Color? color = null)
Parameters
document MeshDocument
The document to create patch set.
patchIndexes IEnumerable
The patch indexes.
name string
The name to be cteated patch set.
maxPenetration ExpressionValueVariable?
The maximum penetration to be cteated patch set. The default value is 0.
offset ExpressionValueVariable?
The offset to be cteated patch set. The default value is 1.
surfaceSmoothing SurfaceSmoothing
The surface smoothing to be cteated patch set. The default value is AUTOMATIC.
color Color?
The color to be cteated patch set. The default value is Violet.
Returns
Obj
The new
Exceptions
Will be thrown if 'document' or 'patchIndexes' arguments are empty.