Pyramid

ภาพรวม

Pyramid เป็นคลาสใน Aspose.3D FOSS สำหรับ Python. สืบทอดจาก: Primitive.

พีระมิดที่มีพารามิเตอร์.

คลาสนี้ประกาศ 16 เมธอดสำหรับอ็อบเจ็กต์ Pyramid ในโปรแกรม 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. คุณสมบัติ: bottom_area, bottom_offset, cast_shadows, control_points, deformers, excluded และอีก 10 รายการ.

คุณสมบัติ

ชื่อประเภทการเข้าถึงคำอธิบาย
bottom_areaVector2อ่าน/เขียนรับพื้นที่ด้านล่าง.
top_areaVector2อ่าน/เขียนรับพื้นที่ด้านบน.
bottom_offsetVector3อ่าน/เขียนรับออฟเซ็ตด้านล่าง.
heightfloatอ่าน/เขียนรับความสูง.
cast_shadowsboolอ่าน/เขียนรับหรือกำหนดเงาที่ถูกฉาย.
receive_shadowsboolอ่าน/เขียนรับหรือกำหนดการรับเงา.
visibleboolอ่าน/เขียนรับหรือกำหนดค่า visible.
deformersList['Deformer']อ่านรับค่า deformers.
vertex_elementsList['VertexElement']อ่านรับองค์ประกอบจุดยอด.
control_points'ArrayListAdapter[Vector4]'อ่านรับจุดควบคุม.
parent_nodesList['Node']อ่านรับโหนดพาเรนต์.
parent_nodeOptional['Node']อ่าน/เขียนรับหรือกำหนดโหนดแม่.
excludedboolอ่าน/เขียนรับหรือกำหนดค่า excluded.
scene``อ่าน/เขียนรับหรือกำหนดฉาก.
namestrอ่าน/เขียนรับหรือกำหนดชื่อ.
propertiesPropertyCollectionอ่านรับคุณสมบัติ.

วิธีการ

ลายเซ็นคำอธิบาย
__init__(name: str, xbottom: float, ybottom: float, xtop: float, ytop: float, height: float)ตัวสร้างของ Pyramid.
to_mesh() → 'Mesh'แปลงอ็อบเจกต์ปัจจุบันเป็นเมช.
__init__(name: str)Calls init(name) บนอินสแตนซ์ Pyramid นี้.
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) บนอินสแตนซ์ Pyramid นี้.
create_element_uv(uv_mapping: 'TextureMapping', mapping_mode: 'MappingMode', reference_mode: 'ReferenceMode') → 'VertexElementUV'เรียก create_element_uv(uv_mapping, mapping_mode, reference_mode) บนอินสแตนซ์ Pyramid นี้.
add_element(element: 'VertexElement')เรียก add_element(element) บนอินสแตนซ์ Pyramid นี้.
get_element(element_type: 'VertexElementType')เรียก get_element(element_type) บนอินสแตนซ์ Pyramid นี้.
get_vertex_element_of_uv(texture_mapping: 'TextureMapping') → Optional['VertexElementUV']เรียก get_vertex_element_of_uv(texture_mapping) บนอินสแตนซ์ Pyramid นี้.
remove_property(property)เรียก remove_property(property) บนอินสแตนซ์ Pyramid นี้.
remove_property(property_name: str)เรียก remove_property(property_name) บนอินสแตนซ์ Pyramid นี้.
get_property(property: str)เรียก get_property(property) บนอินสแตนซ์ Pyramid นี้.
set_property(property: str, value)ตั้งค่าค่าของคุณสมบัติ.
find_property(property: str)เรียก find_property(property) บนอินสแตนซ์ Pyramid นี้.
get_bounding_box()คืนค่า bounding box.
get_entity_renderer_key()ไม่ได้นำไปใช้ในรุ่น FOSS — จะโยนข้อผิดพลาดในขณะรันไทม์. คืนค่า key ของ entity renderer.

ดูเพิ่มเติม

 ภาษาไทย