VertexElementNormal
Overview
VertexElementNormal is a class in Aspose.3D FOSS for TypeScript.
Inherits from: VertexElementFVector.
VertexElementNormal.constructor creates a normal vertex element with the given name and optional mapping and reference modes.
This class declares 6 methods for VertexElementNormal objects in TypeScript programs.
Available methods include: 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, vertexElementType.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
data | FVector4[] | Read | Gets the data. |
indices | number[] | Read | Gets the indices. |
vertexElementType | VertexElementType | Read | Gets the vertex element type. |
name | string | Read/Write | Gets the name. |
mappingMode | MappingMode | Read/Write | Gets the mapping mode. |
referenceMode | ReferenceMode | Read/Write | Gets the reference mode. |
Methods
| Signature | Description |
|---|---|
constructor(name: string, mappingMode: MappingMode | null, referenceMode: ReferenceMode | null) | Creates a normal vertex element with the given name and optional mapping and reference modes |
constructor(elementType: VertexElementType, name: string, mappingMode: MappingMode | null, referenceMode: ReferenceMode | null) | Calls constructor(elementType, name, mappingMode, referenceMode) on this VertexElementNormal instance. |
setData(data: FVector4[] | FVector3[] | FVector2[]) | Sets the data value. |
setIndices(data: number[]) | Sets the indices value. |
clear() | Calls clear on this VertexElementNormal instance. |
copyTo(target: VertexElementFVector) | Calls copyTo(target) on this VertexElementNormal instance. |