Class AddTrianglesMeshChange
Add triangles from mesh and store necessary data to be able to reverse the change.
Vertex and Triangle IDs will be restored on Revert()
Currently does not restore the same EdgeIDs
Inheritance
AddTrianglesMeshChange
Namespace: g3
Assembly: cs.temp.dll.dll
Syntax
public class AddTrianglesMeshChange
Constructors
AddTrianglesMeshChange()
Declaration
public AddTrianglesMeshChange()
Fields
AddedT
Declaration
protected DVector<int> AddedT
Field Value
AddedV
Declaration
protected DVector<int> AddedV
Field Value
Colors
Declaration
protected DVector<Vector3f> Colors
Field Value
Normals
Declaration
protected DVector<Vector3f> Normals
Field Value
OnApplyF
Declaration
public Action<IEnumerable<int>, IEnumerable<int>> OnApplyF
Field Value
OnRevertF
Declaration
public Action<IEnumerable<int>, IEnumerable<int>> OnRevertF
Field Value
Positions
Declaration
protected DVector<Vector3d> Positions
Field Value
Triangles
Declaration
protected DVector<Index4i> Triangles
Field Value
UVs
Declaration
protected DVector<Vector2f> UVs
Field Value
Methods
Apply(DMesh3)
Declaration
public void Apply(DMesh3 mesh)
Parameters
Type |
Name |
Description |
DMesh3 |
mesh |
|
InitializeFromExisting(DMesh3, IEnumerable<Int32>, IEnumerable<Int32>)
Declaration
public void InitializeFromExisting(DMesh3 mesh, IEnumerable<int> added_v, IEnumerable<int> added_t)
Parameters
Revert(DMesh3)
Declaration
public void Revert(DMesh3 mesh)
Parameters
Type |
Name |
Description |
DMesh3 |
mesh |
|