Class ModifyVerticesMeshChange
Mesh change for vertex deformations. Currently minimal support for initializing buffers.
AppendNewVertex() can be used to accumulate modified vertices and their initial positions.
Inheritance
ModifyVerticesMeshChange
Namespace: g3
Assembly: cs.temp.dll.dll
Syntax
public class ModifyVerticesMeshChange
Constructors
ModifyVerticesMeshChange(DMesh3, MeshComponents)
Declaration
public ModifyVerticesMeshChange(DMesh3 mesh, MeshComponents wantComponents = MeshComponents.VertexNormals | MeshComponents.VertexColors | MeshComponents.VertexUVs | MeshComponents.FaceGroups | MeshComponents.All)
Parameters
Fields
ModifiedV
Declaration
public DVector<int> ModifiedV
Field Value
NewColors
Declaration
public DVector<Vector3f> NewColors
Field Value
NewNormals
Declaration
public DVector<Vector3f> NewNormals
Field Value
NewPositions
Declaration
public DVector<Vector3d> NewPositions
Field Value
NewUVs
Declaration
public DVector<Vector2f> NewUVs
Field Value
OldColors
Declaration
public DVector<Vector3f> OldColors
Field Value
OldNormals
Declaration
public DVector<Vector3f> OldNormals
Field Value
OldPositions
Declaration
public DVector<Vector3d> OldPositions
Field Value
OldUVs
Declaration
public DVector<Vector2f> OldUVs
Field Value
OnApplyF
Declaration
public Action<ModifyVerticesMeshChange> OnApplyF
Field Value
OnRevertF
Declaration
public Action<ModifyVerticesMeshChange> OnRevertF
Field Value
Methods
AppendNewVertex(DMesh3, Int32)
Declaration
public int AppendNewVertex(DMesh3 mesh, int vid)
Parameters
Returns
Apply(DMesh3)
Declaration
public void Apply(DMesh3 mesh)
Parameters
Type |
Name |
Description |
DMesh3 |
mesh |
|
Revert(DMesh3)
Declaration
public void Revert(DMesh3 mesh)
Parameters
Type |
Name |
Description |
DMesh3 |
mesh |
|