Search Results for

    Show / Hide Table of Contents

    Class SimpleMesh

    Inheritance
    Object
    SimpleMesh
    Implements
    IDeformableMesh
    IMesh
    IPointSet
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: g3
    Assembly: cs.temp.dll.dll
    Syntax
    public class SimpleMesh : IDeformableMesh, IMesh, IPointSet

    Constructors

    SimpleMesh()

    Declaration
    public SimpleMesh()

    SimpleMesh(IMesh)

    Declaration
    public SimpleMesh(IMesh copy)
    Parameters
    Type Name Description
    IMesh copy

    Fields

    Colors

    Declaration
    public DVector<float> Colors
    Field Value
    Type Description
    DVector<Single>

    FaceGroups

    Declaration
    public DVector<int> FaceGroups
    Field Value
    Type Description
    DVector<Int32>

    Normals

    Declaration
    public DVector<float> Normals
    Field Value
    Type Description
    DVector<Single>

    Triangles

    Declaration
    public DVector<int> Triangles
    Field Value
    Type Description
    DVector<Int32>

    UVs

    Declaration
    public DVector<float> UVs
    Field Value
    Type Description
    DVector<Single>

    Vertices

    Declaration
    public DVector<double> Vertices
    Field Value
    Type Description
    DVector<Double>

    Properties

    Components

    Declaration
    public MeshComponents Components { get; }
    Property Value
    Type Description
    MeshComponents

    HasTriangleGroups

    Declaration
    public bool HasTriangleGroups { get; }
    Property Value
    Type Description
    Boolean

    HasVertexColors

    Declaration
    public bool HasVertexColors { get; }
    Property Value
    Type Description
    Boolean

    HasVertexNormals

    Declaration
    public bool HasVertexNormals { get; }
    Property Value
    Type Description
    Boolean

    HasVertexUVs

    Declaration
    public bool HasVertexUVs { get; }
    Property Value
    Type Description
    Boolean

    MaxTriangleID

    Declaration
    public int MaxTriangleID { get; }
    Property Value
    Type Description
    Int32

    MaxVertexID

    Declaration
    public int MaxVertexID { get; }
    Property Value
    Type Description
    Int32

    Timestamp

    Timestamp is incremented any time any change is made to the mesh

    Declaration
    public int Timestamp { get; }
    Property Value
    Type Description
    Int32

    TriangleCount

    Declaration
    public int TriangleCount { get; }
    Property Value
    Type Description
    Int32

    VertexCount

    Declaration
    public int VertexCount { get; }
    Property Value
    Type Description
    Int32

    Methods

    AppendTriangle(Int32, Int32, Int32, Int32)

    Declaration
    public int AppendTriangle(int i, int j, int k, int g = -1)
    Parameters
    Type Name Description
    Int32 i
    Int32 j
    Int32 k
    Int32 g
    Returns
    Type Description
    Int32

    AppendTriangles(IndexArray3i, Int32[])

    Declaration
    public void AppendTriangles(IndexArray3i t, int[] groups = null)
    Parameters
    Type Name Description
    IndexArray3i t
    Int32[] groups

    AppendTriangles(Int32[], Int32[], Int32)

    Declaration
    public void AppendTriangles(int[] vTriangles, int[] vertexMap, int g = -1)
    Parameters
    Type Name Description
    Int32[] vTriangles
    Int32[] vertexMap
    Int32 g

    AppendVertex(NewVertexInfo)

    Declaration
    public int AppendVertex(NewVertexInfo info)
    Parameters
    Type Name Description
    NewVertexInfo info
    Returns
    Type Description
    Int32

    AppendVertex(Double, Double, Double)

    Declaration
    public int AppendVertex(double x, double y, double z)
    Parameters
    Type Name Description
    Double x
    Double y
    Double z
    Returns
    Type Description
    Int32

    AppendVertices(VectorArray3d, VectorArray3f, VectorArray3f, VectorArray2f)

    Declaration
    public void AppendVertices(VectorArray3d v, VectorArray3f n = null, VectorArray3f c = null, VectorArray2f uv = null)
    Parameters
    Type Name Description
    VectorArray3d v
    VectorArray3f n
    VectorArray3f c
    VectorArray2f uv

    ColorsItr()

    Declaration
    public IEnumerable<Vector3f> ColorsItr()
    Returns
    Type Description
    IEnumerable<Vector3f>

    GetFaceGroupsArray()

    Declaration
    public int[] GetFaceGroupsArray()
    Returns
    Type Description
    Int32[]

    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
    Type Description
    Index3i

    GetTriangleArray()

    Declaration
    public int[] GetTriangleArray()
    Returns
    Type Description
    Int32[]

    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
    Type Description
    Int32

    GetVertex(Int32)

    Declaration
    public Vector3d GetVertex(int i)
    Parameters
    Type Name Description
    Int32 i
    Returns
    Type Description
    Vector3d

    GetVertexAll(Int32)

    Declaration
    public NewVertexInfo GetVertexAll(int i)
    Parameters
    Type Name Description
    Int32 i
    Returns
    Type Description
    NewVertexInfo

    GetVertexArray()

    Declaration
    public double[] GetVertexArray()
    Returns
    Type Description
    Double[]

    GetVertexArrayFloat()

    Declaration
    public float[] GetVertexArrayFloat()
    Returns
    Type Description
    Single[]

    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
    Type Description
    Vector3f

    GetVertexColorArray()

    Declaration
    public float[] GetVertexColorArray()
    Returns
    Type Description
    Single[]

    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
    Type Description
    Vector3f

    GetVertexNormalArray()

    Declaration
    public float[] GetVertexNormalArray()
    Returns
    Type Description
    Single[]

    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
    Type Description
    Vector2f

    GetVertexUVArray()

    Declaration
    public float[] GetVertexUVArray()
    Returns
    Type Description
    Single[]

    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
    Type Name Description
    VectorArray3d v
    VectorArray3i t
    VectorArray3f n
    VectorArray3f c
    VectorArray2f uv
    Int32[] g

    Initialize(Boolean, Boolean, Boolean, Boolean)

    Declaration
    public void Initialize(bool bWantNormals = true, bool bWantColors = true, bool bWantUVs = true, bool bWantFaceGroups = true)
    Parameters
    Type Name Description
    Boolean bWantNormals
    Boolean bWantColors
    Boolean bWantUVs
    Boolean bWantFaceGroups

    IsTriangle(Int32)

    Declaration
    public bool IsTriangle(int tID)
    Parameters
    Type Name Description
    Int32 tID
    Returns
    Type Description
    Boolean

    IsVertex(Int32)

    Declaration
    public bool IsVertex(int vID)
    Parameters
    Type Name Description
    Int32 vID
    Returns
    Type Description
    Boolean

    NormalsItr()

    Declaration
    public IEnumerable<Vector3f> NormalsItr()
    Returns
    Type Description
    IEnumerable<Vector3f>

    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
    Type Name Description
    Double sx
    Double sy
    Double sz

    SetVertex(Int32, Vector3d)

    Declaration
    public void SetVertex(int i, Vector3d v)
    Parameters
    Type Name Description
    Int32 i
    Vector3d v

    SetVertexColor(Int32, Vector3f)

    Declaration
    public void SetVertexColor(int i, Vector3f c)
    Parameters
    Type Name Description
    Int32 i
    Vector3f c

    SetVertexNormal(Int32, Vector3f)

    Declaration
    public void SetVertexNormal(int i, Vector3f n)
    Parameters
    Type Name Description
    Int32 i
    Vector3f n

    SetVertexUV(Int32, Vector2f)

    Declaration
    public void SetVertexUV(int i, Vector2f uv)
    Parameters
    Type Name Description
    Int32 i
    Vector2f uv

    Translate(Double, Double, Double)

    Declaration
    public void Translate(double tx, double ty, double tz)
    Parameters
    Type Name Description
    Double tx
    Double ty
    Double tz

    TriangleGroupsItr()

    Declaration
    public IEnumerable<int> TriangleGroupsItr()
    Returns
    Type Description
    IEnumerable<Int32>

    TriangleIndices()

    Declaration
    public IEnumerable<int> TriangleIndices()
    Returns
    Type Description
    IEnumerable<Int32>

    TrianglesItr()

    Declaration
    public IEnumerable<Index3i> TrianglesItr()
    Returns
    Type Description
    IEnumerable<Index3i>

    UVsItr()

    Declaration
    public IEnumerable<Vector2f> UVsItr()
    Returns
    Type Description
    IEnumerable<Vector2f>

    VertexIndices()

    Declaration
    public IEnumerable<int> VertexIndices()
    Returns
    Type Description
    IEnumerable<Int32>

    VerticesItr()

    Declaration
    public IEnumerable<Vector3d> VerticesItr()
    Returns
    Type Description
    IEnumerable<Vector3d>

    Implements

    IDeformableMesh
    IMesh
    IPointSet
    In This Article
    Back to top ViRGIS VR GIS