Struct VertexData
Stores data for one vertex
Namespace: i5.Toolkit.Core.ModelImporters
Assembly: cs.temp.dll.dll
Syntax
public struct VertexData
Constructors
VertexData(Int32)
Creates a vertex data object with the vertex index only
Declaration
public VertexData(int vertexIndex)
Parameters
Type | Name | Description |
---|---|---|
Int32 | vertexIndex | The index of the vertex |
VertexData(Int32, Int32)
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 |
---|---|---|
Int32 | vertexIndex | The index of the vertex |
Int32 | normalVectorIndex | The index of the vertex in the normal vector array |
VertexData(Int32, Int32, Int32)
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 |
---|---|---|
Int32 | vertexIndex | The index of the vertex |
Int32 | uvIndex | The index of the vertex in the UV layout |
Int32 | normalVectorIndex | The index of the vertex in the normal vector array |
Fields
normalVectorIndex
The index in the normal vector array
Declaration
public int normalVectorIndex
Field Value
Type | Description |
---|---|
Int32 |
uvIndex
The index in the UV layout
Declaration
public int uvIndex
Field Value
Type | Description |
---|---|
Int32 |
vertexIndex
The index of the vertex
Declaration
public int vertexIndex
Field Value
Type | Description |
---|---|
Int32 |
Properties
UseNormalVectorIndex
True if the normal vector index is set
Declaration
public bool UseNormalVectorIndex { get; }
Property Value
Type | Description |
---|---|
Boolean |
UseUvIndex
True if the UV index is set
Declaration
public bool UseUvIndex { get; }
Property Value
Type | Description |
---|---|
Boolean |
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 |
---|---|
Boolean | True if the vertex data objects resemble the same vertex |
Overrides
GetHashCode()
Gets a hash code for the vertex data object
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 | Returns a hash code for the vertex data object |