Frustum

Overview

Frustum is a class in Aspose.3D FOSS for Python. Inherits from: Primitive.

The Frustum class lets developers define a frustum primitive by setting properties such as radius_top, radius_bottom, height, and segment counts.

This class declares 17 methods for Frustum objects in Python programs. Available methods include: __init__, __repr__, 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, and 3 additional methods. Public members are accessible to any Python application after installing the Aspose.3D FOSS for Python package. Properties: cast_shadows, control_points, deformers, excluded, height, height_segments, and 13 more.

Properties

NameTypeAccessDescription
radius_topfloatRead/WriteGets or sets the radius top.
radius_bottomfloatRead/WriteGets or sets the radius bottom.
heightfloatRead/WriteGets or sets the height.
radial_segmentsintRead/WriteGets or sets the radial segments.
height_segmentsintRead/WriteGets or sets the height segments.
theta_startfloatRead/WriteGets or sets the theta start.
theta_lengthfloatRead/WriteGets or sets the theta length.
cast_shadowsboolRead/WriteGets or sets the cast shadows.
receive_shadowsboolRead/WriteGets or sets the receive shadows.
visibleboolRead/WriteGets or sets the visible.
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, radius_top: float, radius_bottom: float, height: float, radial_segments: int, height_segments: int, theta_start: float, theta_length: float)Calls init(name, radius_top, radius_bottom, height, radial_segments, height_segments, theta_start, theta_length) on this Frustum instance.
to_mesh() → 'Mesh'Converts the defined frustum into a Mesh object that can be further edited or exported
__init__(name: str)Calls init(name) on this Frustum 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 with the specified mapping and reference modes for custom vertex data
create_element_uv(uv_mapping: 'TextureMapping', mapping_mode: 'MappingMode', reference_mode: 'ReferenceMode') → 'VertexElementUV'Calls create_element_uv(uv_mapping, mapping_mode, reference_mode) on this Frustum instance.
add_element(element: 'VertexElement')Calls add_element(element) on this Frustum instance.
get_element(element_type: 'VertexElementType')Calls get_element(element_type) on this Frustum instance.
get_vertex_element_of_uv(texture_mapping: 'TextureMapping') → Optional['VertexElementUV']Calls get_vertex_element_of_uv(texture_mapping) on this Frustum instance.
remove_property(property)Calls remove_property(property) on this Frustum instance.
remove_property(property_name: str)Calls remove_property(property_name) on this Frustum instance.
get_property(property: str)Calls get_property(property) on this Frustum instance.
set_property(property: str, value)Sets the property value.
find_property(property: str)Calls find_property(property) on this Frustum instance.
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.
__repr__() → strCalls repr on this Frustum instance.

See Also

 English