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
| Name | Type | Access | Description |
|---|---|---|---|
data | FVector4[] | Read | Holds the array of FVector4, FVector3, or FVector2 assigned to the element |
indices | number[] | Read | Holds the numeric index array referencing the element’s vector data |
Methods
| Signature | Description |
|---|---|
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 |