Geometry
Panoramica
Geometry è una classe in Aspose.3D FOSS per TypeScript. Eredita da: Entity.
Gli oggetti Geometry consentono di aggiungere punti di controllo, creare elementi vertice (inclusi UV) e recuperare le bounding box per i dati della mesh.
Questa classe dichiara 16 metodi per gli oggetti Geometry nei programmi TypeScript. I metodi disponibili includono: addControlPoint, addElement, constructor, createElement, createElementUV, findProperty, getBoundingBox, getElement, getEntityRendererKey, getProperty, getVertexElementOfUV, removeProperty e 2 metodi aggiuntivi. I membri pubblici sono accessibili da qualsiasi applicazione TypeScript dopo aver installato il pacchetto Aspose.3D FOSS per TypeScript. Proprietà: castShadows, controlPoints, excluded, name, parentNode, parentNodes e 5 in più.
Proprietà
| Nome | Tipo | Accesso | Descrizione |
|---|---|---|---|
visible | boolean | Lettura/Scrittura | Ottiene il visibile. |
castShadows | boolean | Lettura/Scrittura | Ottiene le ombre proiettate. |
receiveShadows | boolean | Lettura/Scrittura | Ottiene la ricezione delle ombre. |
vertexElements | VertexElement[] | Lettura | Ottiene gli elementi dei vertici. |
controlPoints | Vector4[] | Lettura/Scrittura | Ottiene i punti di controllo. |
parentNodes | Node[] | Lettura | Ottiene i nodi padre. |
parentNode | `Node | undefined` | Lettura/Scrittura |
excluded | boolean | Lettura/Scrittura | Ottiene l’escluso. |
scene | `Scene | null` | Lettura/Scrittura |
name | string | Lettura/Scrittura | Ottiene il nome. |
properties | PropertyCollection | Lettura | Ottiene le proprietà. |
Metodi
| Firma | Descrizione |
|---|---|
| `constructor(name: string | null)` |
addControlPoint(point: Vector4) | Aggiunge un punto Vector4 all’elenco dei punti di controllo della geometria |
| `createElement(elementType: VertexElementType, mappingMode: MappingMode | null, referenceMode: ReferenceMode |
| `createElementUV(uvMapping: TextureMapping, mappingMode: MappingMode | null, referenceMode: ReferenceMode |
addElement(element: VertexElement) | Aggiunge un VertexElement alla collezione vertexElements della geometria |
getElement(elementType: VertexElementType) → `VertexElement | null` |
getVertexElementOfUV(textureMapping: TextureMapping) → `VertexElementUV | null` |
| `removeProperty(_prop: Property | string)→boolean` |
getProperty(_property: string) → any | Chiama getProperty(_property) su questa istanza di Geometry. |
setProperty(_property: string, _value: any) | Imposta il valore della proprietà. |
findProperty(_property: string) → `Property | null` |
getBoundingBox() → any | Restituisce il bounding box. |
getEntityRendererKey() → any | Non implementato nell’edizione FOSS — lancia a runtime. Restituisce la chiave del renderer dell’entità. |
constructor(name: string) | Chiama il costruttore(name) su questa istanza di Geometry. |
| `removeProperty(property: string | Property)→boolean` |
toString() → string | Chiama toString su questa istanza di Geometry. |