Struct VertexDataIndices
Represents the mapping between Geometry elements and the Geometry Group elements.
Implements
Inherited Members
Namespace: TriLibCore.Geometries
Assembly: TriLibCore.dll
Syntax
public struct VertexDataIndices : IEqualityComparer<VertexDataIndices>
Constructors
VertexDataIndices(int, int, int, int, int, int, int, int)
Represents the mapping between Geometry Group elements and its Geometries. There is one Vertex Data per vertex in every Geometry.
Declaration
public VertexDataIndices(int vertexIndex, int normalIndex, int tangentIndex, int uvIndex, int uvIndex2, int uvIndex3, int uvIndex4, int colorIndex)
Parameters
Type | Name | Description |
---|---|---|
int | vertexIndex | The vertex element index. |
int | normalIndex | The normal element index. |
int | tangentIndex | The tangent element index. |
int | uvIndex | The uv1 element index. |
int | uvIndex2 | The uv2 element index. |
int | uvIndex3 | The uv3 element index. |
int | uvIndex4 | The uv4 element index. |
int | colorIndex | The color element index. |
Fields
ColorIndex
Geometry group color index, or -1 when there is no color for this vertex.
Declaration
public readonly int ColorIndex
Field Value
Type | Description |
---|---|
int |
NormalIndex
Geometry group normal index, or -1 when there is no normal for this vertex.
Declaration
public readonly int NormalIndex
Field Value
Type | Description |
---|---|
int |
TangentIndex
Declaration
public readonly int TangentIndex
Field Value
Type | Description |
---|---|
int |
UvIndex
Geometry group uv channel 1 index, or -1 when there is no uv for this vertex.
Declaration
public readonly int UvIndex
Field Value
Type | Description |
---|---|
int |
UvIndex2
Geometry group uv channel 2 index, or -1 when there is no uv for this vertex.
Declaration
public readonly int UvIndex2
Field Value
Type | Description |
---|---|
int |
UvIndex3
Geometry group uv channel 3 index, or -1 when there is no uv for this vertex.
Declaration
public readonly int UvIndex3
Field Value
Type | Description |
---|---|
int |
UvIndex4
Geometry group uv channel 4 index, or -1 when there is no uv for this vertex.
Declaration
public readonly int UvIndex4
Field Value
Type | Description |
---|---|
int |
VertexIndex
Geometry group vertex index.
Declaration
public readonly int VertexIndex
Field Value
Type | Description |
---|---|
int |
Methods
Equals(object)
Determines whether the specified object is equal to this instance.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The Object to compare with the current instance. |
Returns
Type | Description |
---|---|
bool |
|
Overrides
Equals(VertexDataIndices)
Determines whether the specified Vertex Data is equal to this instance.
Declaration
public bool Equals(VertexDataIndices other)
Parameters
Type | Name | Description |
---|---|---|
VertexDataIndices | other | The Other Vertex Data. |
Returns
Type | Description |
---|---|
bool |
|
Equals(VertexDataIndices, VertexDataIndices)
Determines whether the specified Vertex Data are equals.
Declaration
public bool Equals(VertexDataIndices x, VertexDataIndices y)
Parameters
Type | Name | Description |
---|---|---|
VertexDataIndices | x | The first Vertex Data to compare. |
VertexDataIndices | y | The second Vertex Data to compare. |
Returns
Type | Description |
---|---|
bool | true if the specified objects are equal; otherwise, false. |
GetHashCode()
Returns a hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. |
Overrides
GetHashCode(VertexDataIndices)
Returns a hash code for this instance.
Declaration
public int GetHashCode(VertexDataIndices obj)
Parameters
Type | Name | Description |
---|---|---|
VertexDataIndices | obj | The Vertex Data used to get the hashcode. |
Returns
Type | Description |
---|---|
int | A hash code for the vertex data, suitable for use in hashing algorithms and data structures like a hash table. |