Frustum
Prezentare generală
Frustum este o clasă în Aspose.3D FOSS pentru Python. Moștenește de la: Primitive.
Frustum.to_mesh() generează o reprezentare Mesh a unui frustum de vizualizare, utilă pentru depanarea vizuală a volumelor camerei.
Această clasă declară 16 metode pentru obiecte Frustum în programele Python. Metodele disponibile includ: __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, și 2 metode suplimentare. Toți membrii publici sunt accesibili oricărei aplicații Python după instalarea pachetului Aspose.3D FOSS pentru Python. Proprietăți: cast_shadows, control_points, deformers, excluded, height, height_segments, și încă 13.
Proprietăți
| Nume | Tip | Acces | Descriere: |
|---|---|---|---|
radius_top | float | Citire/Scriere | Obține sau setează raza superioară. |
radius_bottom | float | Citire/Scriere | Obține sau setează radius bottom. |
height | float | Citire/Scriere | Obține sau stabilește înălțimea. |
radial_segments | int | Citire/Scriere | Obține sau setează segmentele radiale. |
height_segments | int | Citire/Scriere | Obține sau stabilește segmentele de înălțime. |
theta_start | float | Citire/Scriere | Obține sau setează începutul theta. |
theta_length | float | Citire/Scriere | Obține sau setează lungimea theta. |
cast_shadows | bool | Citire/Scriere | Obține sau setează umbrele aruncate. |
receive_shadows | bool | Citire/Scriere | Obține sau setează primirea umbrelor. |
visible | bool | Citire/Scriere | Obține sau setează vizibilitatea. |
deformers | List['Deformer'] | Citire | Obține deformatoarele. |
vertex_elements | List['VertexElement'] | Citire | Obține elementele de vârf. |
control_points | 'ArrayListAdapter[Vector4]' | Citire | Obține punctele de control. |
parent_nodes | List['Node'] | Citire | Obține nodurile părinte. |
parent_node | Optional['Node'] | Citire/Scriere | Obține sau stabilește nodul părinte. |
excluded | bool | Citire/Scriere | Obține sau setează exclusul. |
scene | `` | Citire/Scriere | Obține sau setează scena. |
name | str | Citire/Scriere | Obține sau setează name. |
properties | PropertyCollection | Citire | Obține proprietățile. |
Metode
| Semnătură | Descriere: |
|---|---|
__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) pe această instanță Frustum. |
to_mesh() → 'Mesh' | Apelează to_mesh pe această instanță Frustum. |
__init__(name: str) | Calls init(name) pe această instanță Frustum. |
get_deformers(deformer_type: type) → List['Deformer'] | Obține toate deformatoarele de tipul specificat, sau toate deformatoarele dacă nu este specificat niciun tip. |
create_element(element_type: 'VertexElementType', mapping_mode: 'MappingMode', reference_mode: 'ReferenceMode') → 'VertexElement' | Apelează create_element(element_type, mapping_mode, reference_mode) pe această instanță Frustum. |
create_element_uv(uv_mapping: 'TextureMapping', mapping_mode: 'MappingMode', reference_mode: 'ReferenceMode') → 'VertexElementUV' | Apelează create_element_uv(uv_mapping, mapping_mode, reference_mode) pe această instanță Frustum. |
add_element(element: 'VertexElement') | Apelează add_element(element) pe această instanță Frustum. |
get_element(element_type: 'VertexElementType') | Apelează get_element(element_type) pe această instanță Frustum. |
get_vertex_element_of_uv(texture_mapping: 'TextureMapping') → Optional['VertexElementUV'] | Apelează get_vertex_element_of_uv(texture_mapping) pe această instanță Frustum. |
remove_property(property) | Apelează remove_property(property) pe această instanță Frustum. |
remove_property(property_name: str) | Apelează remove_property(property_name) pe această instanță Frustum. |
get_property(property: str) | Apelează get_property(property) pe această instanță Frustum. |
set_property(property: str, value) | Setează valoarea proprietății. |
find_property(property: str) | Apelează find_property(property) pe această instanță Frustum. |
get_bounding_box() | Returnează cutia de delimitare. |
get_entity_renderer_key() | Nu este implementat în ediția FOSS — aruncă la rulare. Returnează cheia renderer-ului entității. |