Geometry
Overview
Geometry is a class in Aspose.3D FOSS for Python.
Inherits from: Entity.
Geometry.create_element creates a VertexElement of the given type, mapping and reference modes.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
visible | bool | Read | Indicates whether the geometry is rendered in the scene |
cast_shadows | bool | Read | Determines if the geometry casts shadows during rendering |
receive_shadows | bool | Read | Determines if the geometry receives shadows from other objects |
vertex_elements | List['VertexElement'] | Read | Provides the list of all VertexElement objects attached to the geometry |
control_points | List[Vector4] | Read | Provides the list of vertex positions as Vector4 objects |
_vertex_elements | List['VertexElement'] | Read | |
_control_points | List[Vector4] | Read | |
_visible | `` | Read | |
_cast_shadows | `` | Read | |
_receive_shadows | `` | Read |
Methods
| 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) | Assigns the given value to the named property of the geometry |
find_property(property: str) | Searches for a property by name and returns it if found |
get_bounding_box() | Computes and returns the geometry’s axis-aligned bounding box |
get_entity_renderer_key() | Not implemented in the FOSS edition — throws at runtime. |