Search Results for

    Show / Hide Table of Contents

    Class DMesh3Builder

    Inheritance
    Object
    DMesh3Builder
    Implements
    IMeshBuilder
    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 DMesh3Builder : IMeshBuilder

    Constructors

    DMesh3Builder()

    Declaration
    public DMesh3Builder()

    Fields

    DuplicateTriBehavior

    What should we do when AddTriangle() fails because the triangle already exists?

    Declaration
    public DMesh3Builder.AddTriangleFailBehaviors DuplicateTriBehavior
    Field Value
    Type Description
    DMesh3Builder.AddTriangleFailBehaviors

    MaterialAssignment

    Declaration
    public List<int> MaterialAssignment
    Field Value
    Type Description
    List<Int32>

    Materials

    Declaration
    public List<GenericMaterial> Materials
    Field Value
    Type Description
    List<GenericMaterial>

    Meshes

    Declaration
    public List<DMesh3> Meshes
    Field Value
    Type Description
    List<DMesh3>

    Metadata

    Declaration
    public List<Dictionary<string, object>> Metadata
    Field Value
    Type Description
    List<Dictionary<String, Object>>

    NonManifoldTriBehavior

    What should we do when AddTriangle() fails because triangle is non-manifold?

    Declaration
    public DMesh3Builder.AddTriangleFailBehaviors NonManifoldTriBehavior
    Field Value
    Type Description
    DMesh3Builder.AddTriangleFailBehaviors

    Properties

    SupportsMetaData

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

    Methods

    AppendMetaData(String, Object)

    Declaration
    public void AppendMetaData(string identifier, object data)
    Parameters
    Type Name Description
    String identifier
    Object data

    AppendNewMesh(DMesh3)

    Declaration
    public int AppendNewMesh(DMesh3 existingMesh)
    Parameters
    Type Name Description
    DMesh3 existingMesh
    Returns
    Type Description
    Int32

    AppendNewMesh(Boolean, Boolean, Boolean, Boolean)

    Declaration
    public int AppendNewMesh(bool bHaveVtxNormals, bool bHaveVtxColors, bool bHaveVtxUVs, bool bHaveFaceGroups)
    Parameters
    Type Name Description
    Boolean bHaveVtxNormals
    Boolean bHaveVtxColors
    Boolean bHaveVtxUVs
    Boolean bHaveFaceGroups
    Returns
    Type Description
    Int32

    AppendTriangle(Int32, Int32, Int32)

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

    AppendTriangle(Int32, Int32, Int32, Int32)

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

    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

    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
    Type Name Description
    IEnumerable<VType> Vertices
    IEnumerable<TType> Triangles
    IEnumerable<NType> Normals
    IEnumerable<Int32> TriGroups
    Returns
    Type Description
    DMesh3
    Type Parameters
    Name Description
    VType
    TType
    NType

    BuildMaterial(GenericMaterial)

    Declaration
    public int BuildMaterial(GenericMaterial m)
    Parameters
    Type Name Description
    GenericMaterial m
    Returns
    Type Description
    Int32

    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
    Type Name Description
    Int32 vID
    Vector2f UV

    Implements

    IMeshBuilder
    In This Article
    Back to top ViRGIS VR GIS