Geometry

Overview

Geometry is a class in Aspose.3D FOSS for Python. Inherits from: Entity.

Geometry class methods let developers create vertex elements, UV mappings, and manage deformers for mesh data.

This class declares 14 methods for Geometry objects in Python programs. Available methods include: __init__, add_element, create_element, create_element_uv, find_property, get_bounding_box, get_deformers, get_element, get_entity_renderer_key, get_property, get_vertex_element_of_uv, remove_property, and 1 additional methods. All public members are accessible to any Python application after installing the Aspose.3D FOSS for Python package. Properties: cast_shadows, control_points, deformers, excluded, name, parent_node, and 6 more.

Properties

NameTypeAccessDescription
visibleboolRead/WriteGets or sets the visible.
cast_shadowsboolRead/WriteGets or sets the cast shadows.
receive_shadowsboolRead/WriteGets or sets the receive shadows.
deformersList['Deformer']ReadGets the deformers.
vertex_elementsList['VertexElement']ReadGets the vertex elements.
control_points'ArrayListAdapter[Vector4]'ReadGets the control points.
parent_nodesList['Node']ReadGets the parent nodes.
parent_nodeOptional['Node']Read/WriteGets or sets the parent node.
excludedboolRead/WriteGets or sets the excluded.
scene``Read/WriteGets or sets the scene.
namestrRead/WriteGets or sets the name.
propertiesPropertyCollectionReadGets the properties.

Methods

SignatureDescription
__init__(name: str)Calls init(name) on this Geometry instance.
get_deformers(deformer_type: type)List['Deformer']Gets all deformers of the specified type, or all deformers if no type is specified.
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)Calls remove_property(property_name) on this Geometry instance.
get_property(property: str)Calls get_property(property) on this Geometry instance.
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.

See Also

 English