VertexElementUV
Przegląd
VertexElementUV jest klasą w Aspose.3D FOSS dla TypeScript. Dziedziczy po: VertexElementFVector.
VertexElementUV.constructor tworzy element UV z opcjonalnym mapowaniem tekstury, nazwą, mapowaniem i trybami odniesienia.
Ta klasa deklaruje 7 metod dla obiektów VertexElementUV w programach TypeScript. Dostępne metody to: addData, clear, constructor, copyTo, setData, setIndices. Publiczne członki są dostępne dla każdej aplikacji TypeScript po zainstalowaniu pakietu Aspose.3D FOSS dla TypeScript. Właściwości: data, indices, mappingMode, name, referenceMode, textureMapping oraz 2 dodatkowe.
Właściwości
| Nazwa | Typ | Dostęp | Opis |
|---|---|---|---|
textureMapping | TextureMapping | Odczyt | Pobiera mapowanie tekstury. |
data | FVector4[] | Odczyt | Pobiera dane. |
uvData | FVector2[] | Odczyt | Pobiera dane uv. |
indices | number[] | Odczyt | Pobiera indeksy. |
vertexElementType | VertexElementType | Odczyt | Pobiera typ elementu wierzchołka. |
name | string | Odczyt/zapis | Pobiera nazwę. |
mappingMode | MappingMode | Odczyt/zapis | Pobiera tryb mapowania. |
referenceMode | ReferenceMode | Odczyt/zapis | Pobiera tryb referencji. |
Metody
| Sygnatura | Opis |
|---|---|
| `constructor(textureMapping: TextureMapping | null, name: string, mappingMode: MappingMode |
| `addData(data: FVector2[] | FVector3[] |
| `constructor(elementType: VertexElementType, name: string, mappingMode: MappingMode | null, referenceMode: ReferenceMode |
| `setData(data: FVector4[] | FVector3[] |
setIndices(data: number[]) | Ustawia wartość indeksów. |
clear() | Wywołuje clear na tej instancji VertexElementUV. |
copyTo(target: VertexElementFVector) | Wywołuje copyTo(target) na tej instancji VertexElementUV. |