VertexElementUV
Panoramica
VertexElementUV è una classe in Aspose.3D FOSS per TypeScript. Eredita da: VertexElementFVector.
VertexElementUV.constructor crea un elemento UV con mappatura della texture opzionale, nome, mappatura e modalità di riferimento.
Questa classe dichiara 7 metodi per oggetti VertexElementUV nei programmi TypeScript. I metodi disponibili includono: addData, clear, constructor, copyTo, setData, setIndices. I membri pubblici sono accessibili a qualsiasi applicazione TypeScript dopo l’installazione del pacchetto Aspose.3D FOSS per TypeScript. Proprietà: data, indices, mappingMode, name, referenceMode, textureMapping, e 2 altri.
Proprietà
| Nome | Tipo | Accesso | Descrizione |
|---|---|---|---|
textureMapping | TextureMapping | Lettura | Ottiene la mappatura della texture. |
data | FVector4[] | Lettura | Ottiene i dati. |
uvData | FVector2[] | Lettura | Ottiene i dati uv. |
indices | number[] | Lettura | Ottiene gli indici. |
vertexElementType | VertexElementType | Lettura | Ottiene il tipo dell’elemento vertice. |
name | string | Lettura/Scrittura | Ottiene il nome. |
mappingMode | MappingMode | Lettura/Scrittura | Ottiene la modalità di mappatura. |
referenceMode | ReferenceMode | Lettura/Scrittura | Ottiene la modalità di riferimento. |
Metodi
| Firma | Descrizione |
|---|---|
| `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[]) | Imposta il valore degli indici. |
clear() | Chiama clear su questa istanza di VertexElementUV. |
copyTo(target: VertexElementFVector) | Chiama copyTo(target) su questa istanza di VertexElementUV. |