VertexField
Overview
VertexField is a class in Aspose.3D FOSS for Typescript.
VertexField.constructor creates a new VertexField with given dataType, semantic, alias, offset, and index.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
dataType | VertexFieldDataType | Read | Stores the VertexFieldDataType of this vertex element |
semantic | VertexFieldSemantic | Read | Stores the VertexFieldSemantic describing the purpose of this vertex element |
alias | string | Read | Holds a custom string identifier for the vertex field |
index | number | Read | Indicates the position of this field within the vertex layout |
offset | number | Read | Specifies the byte offset of this field from the start of the vertex |
size | number | Read | Provides the size in bytes of the data stored in this vertex field |
Methods
| Signature | Description |
|---|---|
constructor(dataType: VertexFieldDataType, semantic: VertexFieldSemantic, alias: string, offset: number, index: number) | Creates a new VertexField with given dataType, semantic, alias, offset, and index |
compareTo(other: VertexField) → number | Returns a numeric value indicating ordering relative to another VertexField |