Class SimpleQuadMesh
SimpleTriangleMesh but for quads. Data packed into buffers, no dynamics.
Supports Per-Vertex Normals, Colors, UV, and Per-Quad Facegroup.
use static WriteOBJ() to save. No loading, for now.
Inheritance
SimpleQuadMesh
Namespace: g3
Assembly: cs.temp.dll.dll
Syntax
public class SimpleQuadMesh
Constructors
SimpleQuadMesh()
Declaration
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
Quads
Declaration
public DVector<int> Quads
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
HasFaceGroups
Declaration
public bool HasFaceGroups { 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
MaxQuadID
Declaration
public int MaxQuadID { get; }
Property Value
MaxVertexID
Declaration
public int MaxVertexID { get; }
Property Value
QuadCount
Declaration
public int QuadCount { get; }
Property Value
VertexCount
Declaration
public int VertexCount { get; }
Property Value
Methods
AppendQuad(Int32, Int32, Int32, Int32, Int32)
Declaration
public int AppendQuad(int i, int j, int k, int l, int g = -1)
Parameters
Returns
AppendVertex(NewVertexInfo)
Declaration
public int AppendVertex(NewVertexInfo info)
Parameters
Returns
AppendVertex(Vector3d)
Declaration
public int AppendVertex(Vector3d v)
Parameters
Returns
AppendVertex(Double, Double, Double)
Declaration
public int AppendVertex(double x, double y, double z)
Parameters
Returns
ColorsItr()
Declaration
public IEnumerable<Vector3f> ColorsItr()
Returns
FaceGroupsItr()
Declaration
public IEnumerable<int> FaceGroupsItr()
Returns
GetFaceGroup(Int32)
Declaration
public int GetFaceGroup(int i)
Parameters
Type |
Name |
Description |
Int32 |
i |
|
Returns
GetFaceGroupsArray()
Declaration
public int[] GetFaceGroupsArray()
Returns
GetQuad(Int32)
Declaration
public Index4i GetQuad(int i)
Parameters
Type |
Name |
Description |
Int32 |
i |
|
Returns
GetQuadArray()
Declaration
public int[] GetQuadArray()
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
GetVertexColor(Int32)
Declaration
public Vector3f GetVertexColor(int i)
Parameters
Type |
Name |
Description |
Int32 |
i |
|
Returns
GetVertexColorArray()
Declaration
public float[] GetVertexColorArray()
Returns
GetVertexNormal(Int32)
Declaration
public Vector3f GetVertexNormal(int i)
Parameters
Type |
Name |
Description |
Int32 |
i |
|
Returns
GetVertexNormalArray()
Declaration
public float[] GetVertexNormalArray()
Returns
GetVertexUV(Int32)
Declaration
public Vector2f GetVertexUV(int i)
Parameters
Type |
Name |
Description |
Int32 |
i |
|
Returns
GetVertexUVArray()
Declaration
public float[] GetVertexUVArray()
Returns
Initialize(Boolean, Boolean, Boolean, Boolean)
Declaration
public void Initialize(bool bWantNormals = true, bool bWantColors = true, bool bWantUVs = true, bool bWantFaceGroups = true)
Parameters
IsQuad(Int32)
Declaration
public bool IsQuad(int qID)
Parameters
Type |
Name |
Description |
Int32 |
qID |
|
Returns
IsVertex(Int32)
Declaration
public bool IsVertex(int vID)
Parameters
Type |
Name |
Description |
Int32 |
vID |
|
Returns
NormalsItr()
Declaration
public IEnumerable<Vector3f> NormalsItr()
Returns
QuadIndices()
Declaration
public IEnumerable<int> QuadIndices()
Returns
QuadsItr()
Declaration
public IEnumerable<Index4i> QuadsItr()
Returns
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
UVsItr()
Declaration
public IEnumerable<Vector2f> UVsItr()
Returns
VertexIndices()
Declaration
public IEnumerable<int> VertexIndices()
Returns
VerticesItr()
Declaration
public IEnumerable<Vector3d> VerticesItr()
Returns
WriteOBJ(SimpleQuadMesh, String, WriteOptions)
Declaration
public static IOWriteResult WriteOBJ(SimpleQuadMesh mesh, string sPath, WriteOptions options)
Parameters
Returns