VertexElementUV
Overview
VertexElementUV is a class in Aspose.3D FOSS for Typescript.
Inherits from: VertexElementFVector.
VertexElementUV.constructor creates a UV element with optional texture mapping, name, mapping and reference modes.
This class provides 2 methods for working with VertexElementUV objects in Typescript programs.
Available methods include: addData, constructor.
All public members are accessible to any Typescript application after installing the Aspose.3D FOSS for Typescript package.
Properties: data, textureMapping, uvData.
Description
VertexElementUV is a class in the Aspose.3D FOSS library for TypeScript that exposes 1 method and 3 properties for programmatic use. It extends VertexElementFVector, inheriting shared functionality from its parent type.
Core capabilities include: texturemapping; fvector4[]; fvector2[]. These operations enable developers to integrate vertexelementuv functionality directly into TypeScript applications.
The class also provides the textureMapping property (gets the texture mapping), the data property (gets the data), the uvData property (gets the uv data).
Instances are created through a single constructor that initializes the object with default values.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
textureMapping | TextureMapping | Read | Gets the texture mapping. |
data | FVector4[] | Read | Gets the data. |
uvData | FVector2[] | Read | Gets the uv data. |
Methods
| Signature | Description |
|---|---|
constructor(textureMapping: TextureMapping | null, name: string, mappingMode: MappingMode | null, referenceMode: ReferenceMode | null) | Creates a UV element with optional texture mapping, name, mapping and reference modes |
addData(data: FVector2[] | FVector3[] | FVector4[]) | Appends an array of 2D, 3D, or 4D vectors as UV coordinate data |