Search Results for

    Show / Hide Table of Contents

    Class VertexTriangleAdjacency

    The VertexTriangleAdjacency class computes a vertex-triangle adjacency map from a given index buffer.

    Inheritance
    VertexTriangleAdjacency
    Assembly: FlaxEngine.dll
    File: Engine/Tools/ModelTool/VertexTriangleAdjacency.h
    Syntax
    public class VertexTriangleAdjacency

    Constructors

    ~VertexTriangleAdjacency()

    Destructor

    Declaration
    public ~VertexTriangleAdjacency()

    VertexTriangleAdjacency(uint32* indices, int32 indicesCount, uint32 vertexCount = 0, bool computeNumTriangles=true)

    Construction from an existing index buffer

    Declaration
    public VertexTriangleAdjacency(uint32* indices, int32 indicesCount, uint32 vertexCount = 0, bool computeNumTriangles=true)
    Parameters
    uint32 indices

    The index buffer.

    int32 indicesCount

    The number of triangles in the buffer.

    uint32 vertexCount

    The number of referenced vertices. This value is computed automatically if 0 is specified.

    bool computeNumTriangles

    If you want the class to compute a list containing the number of referenced triangles per vertex per vertex - pass true.

    Fields

    AdjacencyTable

    The adjacency table.

    Declaration
    public uint32* AdjacencyTable
    Field Value
    uint32

    LiveTriangles

    The table containing the number of referenced triangles per vertex.

    Declaration
    public uint32* LiveTriangles
    Field Value
    uint32

    NumVertices

    The total number of referenced vertices.

    Declaration
    public uint32 NumVertices
    Field Value
    uint32

    OffsetTable

    The offset table

    Declaration
    public uint32* OffsetTable
    Field Value
    uint32

    Methods

    GetAdjacentTriangles(uint32 vertexIndex)

    Gets all triangles adjacent to a vertex.

    Declaration
    public uint32* GetAdjacentTriangles(uint32 vertexIndex) const
    Parameters
    uint32 vertexIndex

    The index of the vertex.

    Returns
    uint32

    A pointer to the adjacency list.

    GetNumTrianglesPtr(uint32 vertexIndex)

    Gets the number of triangles that are referenced by a vertex. This function returns a reference that can be modified.

    Declaration
    public uint32 GetNumTrianglesPtr(uint32 vertexIndex) const
    Parameters
    uint32 vertexIndex

    The index of the vertex.

    Returns
    uint32

    The number of referenced triangles

    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2012-2024 Wojciech Figat