Class DMesh3Builder
Inheritance
DMesh3Builder
Namespace: g3
Assembly: cs.temp.dll.dll
Syntax
public class DMesh3Builder : IMeshBuilder
Constructors
DMesh3Builder()
Declaration
Fields
DuplicateTriBehavior
What should we do when AddTriangle() fails because the triangle already exists?
Declaration
public DMesh3Builder.AddTriangleFailBehaviors DuplicateTriBehavior
Field Value
MaterialAssignment
Declaration
public List<int> MaterialAssignment
Field Value
Materials
Declaration
public List<GenericMaterial> Materials
Field Value
Meshes
Declaration
public List<DMesh3> Meshes
Field Value
Declaration
public List<Dictionary<string, object>> Metadata
Field Value
NonManifoldTriBehavior
What should we do when AddTriangle() fails because triangle is non-manifold?
Declaration
public DMesh3Builder.AddTriangleFailBehaviors NonManifoldTriBehavior
Field Value
Properties
Declaration
public bool SupportsMetaData { get; }
Property Value
Methods
Declaration
public void AppendMetaData(string identifier, object data)
Parameters
AppendNewMesh(DMesh3)
Declaration
public int AppendNewMesh(DMesh3 existingMesh)
Parameters
Type |
Name |
Description |
DMesh3 |
existingMesh |
|
Returns
AppendNewMesh(Boolean, Boolean, Boolean, Boolean)
Declaration
public int AppendNewMesh(bool bHaveVtxNormals, bool bHaveVtxColors, bool bHaveVtxUVs, bool bHaveFaceGroups)
Parameters
Returns
AppendTriangle(Int32, Int32, Int32)
Declaration
public int AppendTriangle(int i, int j, int k)
Parameters
Returns
AppendTriangle(Int32, Int32, Int32, Int32)
Declaration
public int AppendTriangle(int i, int j, int k, int g)
Parameters
Returns
AppendVertex(NewVertexInfo)
Declaration
public int AppendVertex(NewVertexInfo info)
Parameters
Returns
AppendVertex(Double, Double, Double)
Declaration
public int AppendVertex(double x, double y, double z)
Parameters
Returns
AssignMaterial(Int32, Int32)
Declaration
public void AssignMaterial(int materialID, int meshID)
Parameters
Type |
Name |
Description |
Int32 |
materialID |
|
Int32 |
meshID |
|
Build<VType, TType, NType>(IEnumerable<VType>, IEnumerable<TType>, IEnumerable<NType>, IEnumerable<Int32>)
ultimate generic mesh-builder, pass it arrays of floats/doubles, or lists
of Vector3d, or anything in-between. Will figure out how to interpret
Declaration
public static DMesh3 Build<VType, TType, NType>(IEnumerable<VType> Vertices, IEnumerable<TType> Triangles, IEnumerable<NType> Normals = null, IEnumerable<int> TriGroups = null)
Parameters
Returns
Type Parameters
Name |
Description |
VType |
|
TType |
|
NType |
|
BuildMaterial(GenericMaterial)
Declaration
public int BuildMaterial(GenericMaterial m)
Parameters
Returns
SetActiveMesh(Int32)
Declaration
public void SetActiveMesh(int id)
Parameters
Type |
Name |
Description |
Int32 |
id |
|
SetVertexUV(Int32, Vector2f)
Declaration
public void SetVertexUV(int vID, Vector2f UV)
Parameters
Implements