Search Results for

    Show / Hide Table of Contents

    Struct VertexData

    Stores data for one vertex

    Namespace: i5.Toolkit.Core.ModelImporters
    Assembly: cs.temp.dll.dll
    Syntax
    public struct VertexData

    Constructors

    VertexData(int, int, int)

    Creates a vertex data object where the vertex index, uv index and normal vector index are set

    Declaration
    public VertexData(int vertexIndex, int uvIndex, int normalVectorIndex)
    Parameters
    Type Name Description
    int vertexIndex

    The index of the vertex

    int uvIndex

    The index of the vertex in the UV layout

    int normalVectorIndex

    The index of the vertex in the normal vector array

    VertexData(int, int)

    Creates a vertex data object where the vertex index and normal vector index are set

    Declaration
    public VertexData(int vertexIndex, int normalVectorIndex)
    Parameters
    Type Name Description
    int vertexIndex

    The index of the vertex

    int normalVectorIndex

    The index of the vertex in the normal vector array

    VertexData(int)

    Creates a vertex data object with the vertex index only

    Declaration
    public VertexData(int vertexIndex)
    Parameters
    Type Name Description
    int vertexIndex

    The index of the vertex

    Fields

    normalVectorIndex

    The index in the normal vector array

    Declaration
    public int normalVectorIndex
    Field Value
    Type Description
    int

    uvIndex

    The index in the UV layout

    Declaration
    public int uvIndex
    Field Value
    Type Description
    int

    vertexIndex

    The index of the vertex

    Declaration
    public int vertexIndex
    Field Value
    Type Description
    int

    Properties

    UseNormalVectorIndex

    True if the normal vector index is set

    Declaration
    public bool UseNormalVectorIndex { get; }
    Property Value
    Type Description
    bool

    UseUvIndex

    True if the UV index is set

    Declaration
    public bool UseUvIndex { get; }
    Property Value
    Type Description
    bool

    Methods

    Equals(object)

    Checks if two vertex data objects are equal

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj

    The other vertex data object

    Returns
    Type Description
    bool

    True if the vertex data objects resemble the same vertex

    Overrides
    System.ValueType.Equals(object)

    GetHashCode()

    Gets a hash code for the vertex data object

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    Returns a hash code for the vertex data object

    Overrides
    System.ValueType.GetHashCode()
    In This Article
    Back to top i5 Toolkit Documentation