Géométrie
Vue de l’ensemble
‘Geometry’ est une classe dans Aspose.3D FOSS pour Typescript.
Geometry.constructor crée une géométrie avec un nom facultatif.
Cette classe fournit 13 méthodes pour travailler avec des objets de géométrie dans les programmes Type-Scripts. Les méthodologies disponibles comprennent: addControlPoint, adElement , ‘constructor،createElment;CreateElectronsUV; findProperty :getBoundingBox et ’getElements .getEntityRendererKey.getPropriété., ‘getVertexElimentOfUV‘, ‘removePoperty’ et 1 méthode supplémentaire. Tous les membres publics sont accessibles à toute application TypeScript après l'installation de l’Aspose.3D FOSS pour le package Type. Propriétés : castShadows`
Description
‘Geometry’ est une classe dans la bibliothèque Aspose.3D FOSS pour TypeScript qui expose 12 méthodes et 5 propriétés pour l’utilisation programmatique.
Les capacités de base comprennent : ‘boolean’ ; ’ booleain’ et ‘boleaan’.Ces opérations permettent aux développeurs d’intégrer directement la fonctionnalité géométrique dans les applications TypeScript.
La classe fournit également la propriété de ‘vertexElements’ (qui prend les éléments vertéx).
Les instances sont créées à travers un constructeur unique qui initialisera l’objet avec des valeurs par défaut.
Propriétés
| Name | Type | Access | Description |
|---|---|---|---|
visible | boolean | Read/Write | Gets the visible. |
castShadows | boolean | Read/Write | Gets the cast shadows. |
receiveShadows | boolean | Read/Write | Gets the receive shadows. |
vertexElements | VertexElement[] | Read | Gets the vertex elements. |
controlPoints | Vector4[] | Read/Write | Gets the control points. |
méthodes
| Signature | Description |
|---|---|
| `constructor(name: string | null)` |
addControlPoint(point: Vector4) | Adds a Vector4 point to the geometry’s control points list |
| `createElement(elementType: VertexElementType, mappingMode: MappingMode | null, referenceMode: ReferenceMode |
| `createElementUV(uvMapping: TextureMapping, mappingMode: MappingMode | null, referenceMode: ReferenceMode |
addElement(element: VertexElement) | Adds a VertexElement to the geometry’s vertexElements collection |
getElement(elementType: VertexElementType) → `VertexElement | null` |
getVertexElementOfUV(textureMapping: TextureMapping) → `VertexElementUV | null` |
| `removeProperty(_prop: Property | string)→boolean` |
getProperty(_property: string) → any | |
setProperty(_property: string, _value: any) | Sets the property value. |
findProperty(_property: string) → `Property | null` |
getBoundingBox() → any | Returns the bounding box. |
getEntityRendererKey() → any | Not implemented in the FOSS edition — throws at runtime. Returns the entity renderer key. |
Voir aussi
- Aspose.3D - référence API d’entreprise