Géométrie
Vue de l’ensemble
‘Geometry’ est une classe dans Aspose.3D FOSS pour Python.
Geometry.create_element crée un VertexElement du type donné, des modes de cartographie et de référence.
Cette classe fournit 13 méthodes pour travailler avec des objets de géométrie dans les programmes Python. Les méthodologies disponibles comprennent: __init__, add_element , ‘create_element;creat_élément_uv; find_property:get_bounding_boxet get_element. ,get_entity_renderer_key. , ''get-properties., geet-vertex_électronique_of_UV.. tous les membres publics sont accessibles à toute application Pythone après l’installation du package PyThone Aspose.3D FOSS. Propriétés : ‘cast_shadows ou 'control_points excluded, ‘parent name’, node n’node, etc.
Propriétés
| Name | Type | Access | Description |
|---|---|---|---|
visible | bool | Read/Write | Gets or sets the visible. |
cast_shadows | bool | Read/Write | Gets or sets the cast shadows. |
receive_shadows | bool | Read/Write | Gets or sets the receive shadows. |
vertex_elements | List['VertexElement'] | Read | Gets the vertex elements. |
control_points | List[Vector4] | Read | Gets the control points. |
parent_nodes | List['Node'] | Read | Gets the parent nodes. |
parent_node | Optional['Node'] | Read/Write | Gets or sets the parent node. |
excluded | bool | Read/Write | Gets or sets the excluded. |
scene | `` | Read/Write | Gets or sets the scene. |
name | str | Read/Write | Gets or sets the name. |
properties | PropertyCollection | Read | Gets the properties. |
méthodes
| Signature | Description |
|---|---|
__init__(name: str) | |
create_element(element_type: 'VertexElementType', mapping_mode: 'MappingMode', reference_mode: 'ReferenceMode') → 'VertexElement' | Creates a VertexElement of the given type, mapping and reference modes |
create_element_uv(uv_mapping: 'TextureMapping', mapping_mode: 'MappingMode', reference_mode: 'ReferenceMode') → 'VertexElementUV' | Creates a UV VertexElement for the specified texture mapping and modes |
add_element(element: 'VertexElement') | Adds the supplied VertexElement to the geometry’s element collection |
get_element(element_type: 'VertexElementType') | Returns the first VertexElement matching the specified element type |
get_vertex_element_of_uv(texture_mapping: 'TextureMapping') → Optional['VertexElementUV'] | Returns the UV VertexElement for the given texture mapping, or None |
remove_property(property) | Deletes a property either by object reference or by its name |
remove_property(property_name: str) | |
get_property(property: str) | |
set_property(property: str, value) | Sets the property value. |
find_property(property: str) | Searches for a property by name and returns it if found |
get_bounding_box() | Returns the bounding box. |
get_entity_renderer_key() | Not implemented in the FOSS edition — throws at runtime. Returns the entity renderer key. |
Voir aussi
- Aspose.3D - référence API d’entreprise