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 declares 7 methods for VertexElementUV objects in TypeScript programs. Available methods include: addData, clear, constructor, copyTo, setData, setIndices. Public members are accessible to any TypeScript application after installing the Aspose.3D FOSS for TypeScript package. Properties: data, indices, mappingMode, name, referenceMode, textureMapping, and 2 more.

Properties

NameTypeAccessDescription
textureMappingTextureMappingReadGets the texture mapping.
dataFVector4[]ReadGets the data.
uvDataFVector2[]ReadGets the uv data.
indicesnumber[]ReadGets the indices.
vertexElementTypeVertexElementTypeReadGets the vertex element type.
namestringRead/WriteGets the name.
mappingModeMappingModeRead/WriteGets the mapping mode.
referenceModeReferenceModeRead/WriteGets the reference mode.

Methods

SignatureDescription
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
constructor(elementType: VertexElementType, name: string, mappingMode: MappingMode | null, referenceMode: ReferenceMode | null)Calls constructor(elementType, name, mappingMode, referenceMode) on this VertexElementUV instance.
setData(data: FVector4[] | FVector3[] | FVector2[])Sets the data value.
setIndices(data: number[])Sets the indices value.
clear()Calls clear on this VertexElementUV instance.
copyTo(target: VertexElementFVector)Calls copyTo(target) on this VertexElementUV instance.

See Also

 English