VertexDeclaration

VertexDeclaration

Overview

VertexDeclaration is a class in Aspose.3D FOSS for TypeScript.

VertexDeclaration.constructor creates a new, empty vertex declaration.

This class declares 6 methods for VertexDeclaration objects in TypeScript programs. Available methods include: addField, clear, compareTo, constructor, fromGeometry, getField. Public members are accessible to any TypeScript application after installing the Aspose.3D FOSS for TypeScript package. Properties: count, sealed, size.

Properties

NameTypeAccessDescription
sealedbooleanReadGets the sealed.
countnumberReadGets the count.
sizenumberReadGets the size.

Methods

SignatureDescription
constructor()Creates a new, empty vertex declaration
clear()Removes all fields from the declaration
addField(dataType: VertexFieldDataType, semantic: VertexFieldSemantic, index: number, alias: string)VertexFieldAdds a field with type, semantic, index, and alias, returning the VertexField
fromGeometry(_geometry: any, _useFloat: boolean)VertexDeclarationNot implemented in the FOSS edition — throws at runtime. Builds a declaration from geometry data, optionally using float precision
compareTo(other: VertexDeclaration)numberCompares this declaration with another and returns a sorting number
getField(index: number)VertexFieldReturns the field at the specified index

See Also

 English