Class VertexWeldMergeBehavior
Welds vertices together on merged meshes.
Namespace: Unity.Industrial.Forma.Core.MeshMerge
Syntax
public class VertexWeldMergeBehavior : IMergeBehavior
Properties
NormalTolerance
Tolerance we apply to each component of a given normal.
Declaration
public int NormalTolerance { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
UVTolerance
Tolerance we apply to each component of a given uv.
Declaration
public int UVTolerance { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
VertTolerance
Tolerance we apply to each component of a given vertex.
Declaration
public int VertTolerance { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
Methods
PostMerge(MergedModel)
Called after the meshes have been merged. Implement post-merge behavior here.
Declaration
public void PostMerge(MergedModel mergedModel)
Parameters
Type | Name | Description |
---|---|---|
MergedModel | mergedModel | The MergedModel instance that was merged. |
Implements
PreMerge(MergedModel, Transform)
Called before the originalRoot
meshes are merged. Implement pre-merge behavior here
Declaration
public void PreMerge(MergedModel mergedModel, Transform originalRoot)
Parameters
Type | Name | Description |
---|---|---|
MergedModel | mergedModel | The MergedModel instance will have its meshes merged. |
Transform | originalRoot | The root node of the hierarchy that will be merged. |