Patch
ภาพรวม
Patch เป็นคลาสใน Aspose.3D FOSS สำหรับ Python. สืบทอดจาก: Geometry.
อ็อบเจ็กต์ Patch อนุญาตให้สร้างองค์ประกอบเวอร์เท็กซ์แบบกำหนดเองผ่านเมธอด create_element และ create_element_uv.
คลาสนี้ประกาศ 14 เมธอดสำหรับอ็อบเจ็กต์ Patch ในโปรแกรม 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, และเมธอดเพิ่มเติมอีก 1 รายการ. สมาชิกสาธารณะทั้งหมดสามารถเข้าถึงได้โดยแอปพลิเคชัน Python ใด ๆ หลังจากติดตั้งแพคเกจ Aspose.3D FOSS สำหรับ Python. คุณสมบัติ: cast_shadows, control_points, deformers, excluded, name, parent_node, และอีก 8 รายการ.
คุณสมบัติ
| ชื่อ | ประเภท | การเข้าถึง | คำอธิบาย |
|---|---|---|---|
u | 'PatchDirection' | อ่าน | รับค่า u. |
v | 'PatchDirection' | อ่าน | รับค่า v. |
visible | bool | อ่าน/เขียน | รับหรือกำหนดค่า visible. |
cast_shadows | bool | อ่าน/เขียน | รับหรือกำหนดเงาที่สร้าง. |
receive_shadows | bool | อ่าน/เขียน | รับหรือกำหนดการรับเงา. |
deformers | List['Deformer'] | อ่าน | ดึงค่า deformers. |
vertex_elements | List['VertexElement'] | อ่าน | รับส่วนประกอบเวอร์เทกซ์. |
control_points | 'ArrayListAdapter[Vector4]' | อ่าน | รับจุดควบคุม. |
parent_nodes | List['Node'] | อ่าน | รับโหนดพาเรนท์. |
parent_node | Optional['Node'] | อ่าน/เขียน | รับหรือกำหนดโหนดแม่. |
excluded | bool | อ่าน/เขียน | รับหรือกำหนดค่า excluded. |
scene | `` | อ่าน/เขียน | รับหรือกำหนดฉาก. |
name | str | อ่าน/เขียน | รับหรือกำหนดชื่อ. |
properties | PropertyCollection | อ่าน | รับคุณสมบัติ. |
วิธีการ
| ลายเซ็น | คำอธิบาย |
|---|---|
__init__(name: str) | Calls init(name) บนอินสแตนซ์ Patch นี้. |
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) บนอินสแตนซ์ Patch นี้. |
create_element_uv(uv_mapping: 'TextureMapping', mapping_mode: 'MappingMode', reference_mode: 'ReferenceMode') → 'VertexElementUV' | เรียก create_element_uv(uv_mapping, mapping_mode, reference_mode) บนอินสแตนซ์ Patch นี้. |
add_element(element: 'VertexElement') | เรียก add_element(element) บนอินสแตนซ์ Patch นี้. |
get_element(element_type: 'VertexElementType') | เรียก get_element(element_type) บนอินสแตนซ์ Patch นี้. |
get_vertex_element_of_uv(texture_mapping: 'TextureMapping') → Optional['VertexElementUV'] | เรียก get_vertex_element_of_uv(texture_mapping) บนอินสแตนซ์ Patch นี้. |
remove_property(property) | เรียก remove_property(property) บนอินสแตนซ์ Patch นี้. |
remove_property(property_name: str) | เรียก remove_property(property_name) บนอินสแตนซ์ Patch นี้. |
get_property(property: str) | เรียก get_property(property) บนอินสแตนซ์ Patch นี้. |
set_property(property: str, value) | ตั้งค่าค่าของ property. |
find_property(property: str) | เรียก find_property(property) บนอินสแตนซ์ Patch นี้. |
get_bounding_box() | คืนค่ากล่องขอบเขต. |
get_entity_renderer_key() | ไม่ได้รับการทำงานในเวอร์ชัน FOSS — จะโยนข้อผิดพลาดขณะรันไทม์. ส่งคืนคีย์ของเรนเดอร์เอนทิตี้. |