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

NameTypeAccessDescription
dataTypeVertexFieldDataTypeReadStores the VertexFieldDataType of this vertex element
semanticVertexFieldSemanticReadStores the VertexFieldSemantic describing the purpose of this vertex element
aliasstringReadHolds a custom string identifier for the vertex field
indexnumberReadIndicates the position of this field within the vertex layout
offsetnumberReadSpecifies the byte offset of this field from the start of the vertex
sizenumberReadProvides the size in bytes of the data stored in this vertex field

Methods

SignatureDescription
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)numberReturns a numeric value indicating ordering relative to another VertexField

See Also