VertexElementFVector

VertexElementFVector

Overview

VertexElementFVector is a class in Aspose.3D FOSS for Typescript. Inherits from: VertexElement.

VertexElementFVector.constructor creates a new VertexElementFVector with specified type, name, and optional mapping/reference modes.

Properties

NameTypeAccessDescription
dataFVector4[]ReadHolds the array of FVector4, FVector3, or FVector2 assigned to the element
indicesnumber[]ReadHolds the numeric index array referencing the element’s vector data

Methods

SignatureDescription
constructor(elementType: VertexElementType, name: string, mappingMode: MappingMode | null, referenceMode: ReferenceMode | null)Creates a new VertexElementFVector with specified type, name, and optional mapping/reference modes
setData(data: FVector4[] | FVector3[] | FVector2[])Assigns an array of FVector4, FVector3, or FVector2 to the vertex element
setIndices(data: number[])Sets the numeric index array used for indexed vertex data
clear()Removes all stored vector data and indices from the element
copyTo(target: VertexElementFVector)Copies this element’s data and indices into the target VertexElementFVector

See Also