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

NameTypeAccessDescription
visiblebooleanRead/WriteGets the visible.
castShadowsbooleanRead/WriteGets the cast shadows.
receiveShadowsbooleanRead/WriteGets the receive shadows.
vertexElementsVertexElement[]ReadGets the vertex elements.
controlPointsVector4[]Read/WriteGets the control points.

méthodes

SignatureDescription
`constructor(name: stringnull)`
addControlPoint(point: Vector4)Adds a Vector4 point to the geometry’s control points list
`createElement(elementType: VertexElementType, mappingMode: MappingModenull, referenceMode: ReferenceMode
`createElementUV(uvMapping: TextureMapping, mappingMode: MappingModenull, referenceMode: ReferenceMode
addElement(element: VertexElement)Adds a VertexElement to the geometry’s vertexElements collection
getElement(elementType: VertexElementType) → `VertexElementnull`
getVertexElementOfUV(textureMapping: TextureMapping) → `VertexElementUVnull`
`removeProperty(_prop: Propertystring)boolean`
getProperty(_property: string)any
setProperty(_property: string, _value: any)Sets the property value.
findProperty(_property: string) → `Propertynull`
getBoundingBox()anyReturns the bounding box.
getEntityRendererKey()anyNot implemented in the FOSS edition — throws at runtime. Returns the entity renderer key.

Voir aussi

  • Aspose.3D - référence API d’entreprise
 Français