VertexDeclaration
General
VertexDeclaration és una classe de l’Aspose.3d per a Typescript. Hereta del: ゚VertexDeclaration⌒ .
VertexDeclaration permet als desenvolupadors definir un disseny de vèrtex personalitzat afegint camps amb tipus de dades, semàntica, índex i aliases, i proporciona metadades com el nombre de camps, mida total i estat segellat.
Propietats
| Name | Type | Access | Description |
|---|---|---|---|
sealed | boolean | Read | Indicates whether the declaration is immutable |
count | number | Read | Returns the number of fields in the declaration |
size | number | Read | Returns the total byte size of a vertex defined by the declaration |
Mètodes
| Signature | Description |
|---|---|
constructor() | Creates a new, empty vertex declaration |
clear() | Removes all fields from the declaration |
addField(dataType: VertexFieldDataType, semantic: VertexFieldSemantic, index: number, alias: string) → VertexField | Adds a field with type, semantic, index, and alias, returning the VertexField |
fromGeometry(_geometry: any, _useFloat: boolean) → VertexDeclaration | Builds a declaration from geometry data, optionally using float precision |
compareTo(other: VertexDeclaration) → number | Compares this declaration with another and returns a sort order number |
getField(index: number) → VertexField | Returns the field at the specified index |