Frustum
ภาพรวม
Frustum เป็นคลาสใน Aspose.3D FOSS สำหรับ Python. สืบทอดจาก: Primitive.
Frustum.to_mesh() สร้างการแสดงผล Mesh ของ frustum การมองเห็น ซึ่งมีประโยชน์สำหรับการดีบักเชิงภาพของปริมาณกล้อง.
คลาสนี้ประกาศ 16 เมธอดสำหรับวัตถุ Frustum ในโปรแกรม Python. เมธอดที่มีรวมถึง: __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, และเมธอดเพิ่มเติมอีก 2 รายการ. สมาชิกสาธารณะทั้งหมดสามารถเข้าถึงได้จากแอปพลิเคชัน Python ใด ๆ หลังจากติดตั้งแพ็กเกจ Aspose.3D FOSS สำหรับ Python. คุณสมบัติ: cast_shadows, control_points, deformers, excluded, height, height_segments, และอีก 13 รายการ.
คุณสมบัติ
| ชื่อ | ประเภท | การเข้าถึง | คำอธิบาย |
|---|---|---|---|
radius_top | float | อ่าน/เขียน | รับหรือกำหนดค่ารัศมีด้านบน. |
radius_bottom | float | อ่าน/เขียน | รับหรือกำหนดรัศมีด้านล่าง. |
height | float | อ่าน/เขียน | รับหรือกำหนดความสูง. |
radial_segments | int | อ่าน/เขียน | รับหรือกำหนดส่วนรัศมี. |
height_segments | int | อ่าน/เขียน | รับหรือกำหนดส่วนความสูง. |
theta_start | float | อ่าน/เขียน | รับหรือกำหนดค่า theta start. |
theta_length | float | อ่าน/เขียน | รับหรือกำหนดค่า theta length. |
cast_shadows | bool | อ่าน/เขียน | รับหรือกำหนดการทำเงา. |
receive_shadows | bool | อ่าน/เขียน | รับหรือกำหนด receive shadows. |
visible | bool | อ่าน/เขียน | รับหรือกำหนดค่า visible. |
deformers | List['Deformer'] | อ่าน | รับตัวดัดรูป. |
vertex_elements | List['VertexElement'] | อ่าน | รับอิลเมนต์ของเวอร์เท็กซ์. |
control_points | 'ArrayListAdapter[Vector4]' | อ่าน | รับจุดควบคุม. |
parent_nodes | List['Node'] | อ่าน | รับโหนดแม่. |
parent_node | Optional['Node'] | อ่าน/เขียน | รับหรือกำหนดโหนดแม่. |
excluded | bool | อ่าน/เขียน | รับหรือกำหนดค่าที่ถูกยกเว้น. |
scene | `` | อ่าน/เขียน | รับหรือกำหนดฉาก. |
name | str | อ่าน/เขียน | รับหรือกำหนดชื่อ. |
properties | PropertyCollection | อ่าน | ดึงคุณสมบัติ. |
วิธีการ
| ลายเซ็น | คำอธิบาย |
|---|---|
__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) บนอินสแตนซ์ Frustum นี้. |
to_mesh() → 'Mesh' | เรียก to_mesh บนอินสแตนซ์ Frustum นี้. |
__init__(name: str) | Calls init(name) บนอินสแตนซ์ Frustum นี้. |
get_deformers(deformer_type: type) → List['Deformer'] | ดึงทุก deformers ของประเภทที่ระบุ, หรือทุก deformers หากไม่ได้ระบุประเภท. |
create_element(element_type: 'VertexElementType', mapping_mode: 'MappingMode', reference_mode: 'ReferenceMode') → 'VertexElement' | เรียก create_element(element_type, mapping_mode, reference_mode) บนอินสแตนซ์ Frustum นี้. |
create_element_uv(uv_mapping: 'TextureMapping', mapping_mode: 'MappingMode', reference_mode: 'ReferenceMode') → 'VertexElementUV' | เรียก create_element_uv(uv_mapping, mapping_mode, reference_mode) บนอินสแตนซ์ Frustum นี้. |
add_element(element: 'VertexElement') | เรียก add_element(element) บนอินสแตนซ์ Frustum นี้. |
get_element(element_type: 'VertexElementType') | เรียก get_element(element_type) บนอินสแตนซ์ Frustum นี้. |
get_vertex_element_of_uv(texture_mapping: 'TextureMapping') → Optional['VertexElementUV'] | เรียก get_vertex_element_of_uv(texture_mapping) บนอินสแตนซ์ Frustum นี้. |
remove_property(property) | เรียก remove_property(property) บนอินสแตนซ์ Frustum นี้. |
remove_property(property_name: str) | เรียก remove_property(property_name) บนอินสแตนซ์ Frustum นี้. |
get_property(property: str) | เรียก get_property(property) บนอินสแตนซ์ Frustum นี้. |
set_property(property: str, value) | ตั้งค่าค่า property. |
find_property(property: str) | เรียก find_property(property) บนอินสแตนซ์ Frustum นี้. |
get_bounding_box() | คืนค่า bounding box. |
get_entity_renderer_key() | ยังไม่ได้ทำในรุ่น FOSS — จะโยนข้อผิดพลาดขณะรันไทม์. คืนค่า entity renderer key. |