VertexField
General
VertexField és una classe de l’Aspose.3d per a Typescript. Hereta del: ゚VertexField⌒ .
VertexField.constructor crea un nou VertexField amb el tipus de dades donat, semàntica, alias, offset i index.
Propietats
| Name | Type | Access | Description |
|---|---|---|---|
dataType | VertexFieldDataType | Read | Stores the VertexFieldDataType that defines the field’s data representation |
semantic | VertexFieldSemantic | Read | Holds the VertexFieldSemantic indicating the field’s purpose in the vertex layout |
alias | string | Read | Is a string that provides a custom name for the vertex field |
index | number | Read | Indicates the sequential index of the field within the vertex declaration |
offset | number | Read | Specifies the byte offset of the field from the start of the vertex data |
size | number | Read | Returns the size in bytes of the field based on its data type |
Mètodes
| Signature | Description |
|---|---|
constructor(dataType: VertexFieldDataType, semantic: VertexFieldSemantic, alias: string, offset: number, index: number) | Creates a new VertexField with the given data type, semantic, alias, offset, and index |
compareTo(other: VertexField) → number | Returns a numeric ordering value when compared with another VertexField |