Class SimpleMesh
Namespace: g3
Assembly: cs.temp.dll.dll
Syntax
public class SimpleMesh : IDeformableMesh, IMesh, IPointSet
Constructors
SimpleMesh()
Declaration
SimpleMesh(IMesh)
Declaration
public SimpleMesh(IMesh copy)
Parameters
Type |
Name |
Description |
IMesh |
copy |
|
Fields
Colors
Declaration
public DVector<float> Colors
Field Value
FaceGroups
Declaration
public DVector<int> FaceGroups
Field Value
Normals
Declaration
public DVector<float> Normals
Field Value
Triangles
Declaration
public DVector<int> Triangles
Field Value
UVs
Declaration
public DVector<float> UVs
Field Value
Vertices
Declaration
public DVector<double> Vertices
Field Value
Properties
Components
Declaration
public MeshComponents Components { get; }
Property Value
HasTriangleGroups
Declaration
public bool HasTriangleGroups { get; }
Property Value
HasVertexColors
Declaration
public bool HasVertexColors { get; }
Property Value
HasVertexNormals
Declaration
public bool HasVertexNormals { get; }
Property Value
HasVertexUVs
Declaration
public bool HasVertexUVs { get; }
Property Value
MaxTriangleID
Declaration
public int MaxTriangleID { get; }
Property Value
MaxVertexID
Declaration
public int MaxVertexID { get; }
Property Value
Timestamp
Timestamp is incremented any time any change is made to the mesh
Declaration
public int Timestamp { get; }
Property Value
TriangleCount
Declaration
public int TriangleCount { get; }
Property Value
VertexCount
Declaration
public int VertexCount { get; }
Property Value
Methods
AppendTriangle(Int32, Int32, Int32, Int32)
Declaration
public int AppendTriangle(int i, int j, int k, int g = -1)
Parameters
Returns
AppendTriangles(IndexArray3i, Int32[])
Declaration
public void AppendTriangles(IndexArray3i t, int[] groups = null)
Parameters
AppendTriangles(Int32[], Int32[], Int32)
Declaration
public void AppendTriangles(int[] vTriangles, int[] vertexMap, int g = -1)
Parameters
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
AppendVertices(VectorArray3d, VectorArray3f, VectorArray3f, VectorArray2f)
Declaration
public void AppendVertices(VectorArray3d v, VectorArray3f n = null, VectorArray3f c = null, VectorArray2f uv = null)
Parameters
ColorsItr()
Declaration
public IEnumerable<Vector3f> ColorsItr()
Returns
GetFaceGroupsArray()
Declaration
public int[] GetFaceGroupsArray()
Returns
GetFaceGroupsBuffer(Int32*)
Declaration
public void GetFaceGroupsBuffer(int *pBuffer)
Parameters
Type |
Name |
Description |
Int32* |
pBuffer |
|
GetTriangle(Int32)
Declaration
public Index3i GetTriangle(int i)
Parameters
Type |
Name |
Description |
Int32 |
i |
|
Returns
GetTriangleArray()
Declaration
public int[] GetTriangleArray()
Returns
GetTriangleBuffer(Int32*)
Declaration
public void GetTriangleBuffer(int *pBuffer)
Parameters
Type |
Name |
Description |
Int32* |
pBuffer |
|
GetTriangleGroup(Int32)
Declaration
public int GetTriangleGroup(int i)
Parameters
Type |
Name |
Description |
Int32 |
i |
|
Returns
GetVertex(Int32)
Declaration
public Vector3d GetVertex(int i)
Parameters
Type |
Name |
Description |
Int32 |
i |
|
Returns
GetVertexAll(Int32)
Declaration
public NewVertexInfo GetVertexAll(int i)
Parameters
Type |
Name |
Description |
Int32 |
i |
|
Returns
GetVertexArray()
Declaration
public double[] GetVertexArray()
Returns
GetVertexArrayFloat()
Declaration
public float[] GetVertexArrayFloat()
Returns
GetVertexBuffer(Double*)
Declaration
public void GetVertexBuffer(double *pBuffer)
Parameters
Type |
Name |
Description |
Double* |
pBuffer |
|
GetVertexColor(Int32)
Declaration
public Vector3f GetVertexColor(int i)
Parameters
Type |
Name |
Description |
Int32 |
i |
|
Returns
GetVertexColorArray()
Declaration
public float[] GetVertexColorArray()
Returns
GetVertexColorBuffer(Single*)
Declaration
public void GetVertexColorBuffer(float *pBuffer)
Parameters
Type |
Name |
Description |
Single* |
pBuffer |
|
GetVertexNormal(Int32)
Declaration
public Vector3f GetVertexNormal(int i)
Parameters
Type |
Name |
Description |
Int32 |
i |
|
Returns
GetVertexNormalArray()
Declaration
public float[] GetVertexNormalArray()
Returns
GetVertexNormalBuffer(Single*)
Declaration
public void GetVertexNormalBuffer(float *pBuffer)
Parameters
Type |
Name |
Description |
Single* |
pBuffer |
|
GetVertexUV(Int32)
Declaration
public Vector2f GetVertexUV(int i)
Parameters
Type |
Name |
Description |
Int32 |
i |
|
Returns
GetVertexUVArray()
Declaration
public float[] GetVertexUVArray()
Returns
GetVertexUVBuffer(Single*)
Declaration
public void GetVertexUVBuffer(float *pBuffer)
Parameters
Type |
Name |
Description |
Single* |
pBuffer |
|
Initialize(VectorArray3d, VectorArray3i, VectorArray3f, VectorArray3f, VectorArray2f, Int32[])
Declaration
public void Initialize(VectorArray3d v, VectorArray3i t, VectorArray3f n = null, VectorArray3f c = null, VectorArray2f uv = null, int[] g = null)
Parameters
Initialize(Boolean, Boolean, Boolean, Boolean)
Declaration
public void Initialize(bool bWantNormals = true, bool bWantColors = true, bool bWantUVs = true, bool bWantFaceGroups = true)
Parameters
IsTriangle(Int32)
Declaration
public bool IsTriangle(int tID)
Parameters
Type |
Name |
Description |
Int32 |
tID |
|
Returns
IsVertex(Int32)
Declaration
public bool IsVertex(int vID)
Parameters
Type |
Name |
Description |
Int32 |
vID |
|
Returns
NormalsItr()
Declaration
public IEnumerable<Vector3f> NormalsItr()
Returns
Scale(Double)
Declaration
public void Scale(double s)
Parameters
Type |
Name |
Description |
Double |
s |
|
Scale(Double, Double, Double)
Declaration
public void Scale(double sx, double sy, double sz)
Parameters
SetVertex(Int32, Vector3d)
Declaration
public void SetVertex(int i, Vector3d v)
Parameters
SetVertexColor(Int32, Vector3f)
Declaration
public void SetVertexColor(int i, Vector3f c)
Parameters
SetVertexNormal(Int32, Vector3f)
Declaration
public void SetVertexNormal(int i, Vector3f n)
Parameters
SetVertexUV(Int32, Vector2f)
Declaration
public void SetVertexUV(int i, Vector2f uv)
Parameters
Translate(Double, Double, Double)
Declaration
public void Translate(double tx, double ty, double tz)
Parameters
TriangleGroupsItr()
Declaration
public IEnumerable<int> TriangleGroupsItr()
Returns
TriangleIndices()
Declaration
public IEnumerable<int> TriangleIndices()
Returns
TrianglesItr()
Declaration
public IEnumerable<Index3i> TrianglesItr()
Returns
UVsItr()
Declaration
public IEnumerable<Vector2f> UVsItr()
Returns
VertexIndices()
Declaration
public IEnumerable<int> VertexIndices()
Returns
VerticesItr()
Declaration
public IEnumerable<Vector3d> VerticesItr()
Returns
Implements