Class PatchSetAPI
Last update: 09.03.2026Namespace: VM.API.Pre.FE
Assembly: VM.API.Pre.FE.dll
This class implements APIs to create patch set.
public static class PatchSetAPI
Inheritance
object ← PatchSetAPI
Extension Methods
LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects<T>(object, LinkPropertyType)
Methods
CreatePatchset(MeshDocument, IEnumerable<Patch>, 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<Patch>
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
The new
Exceptions
ArgumentNullException
Will be thrown if 'document' or 'patchIndexes' arguments are empty.