Circle

ภาพรวม

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

คลาสนี้ประกาศ 16 เมธอดสำหรับอ็อบเจกต์ Circle ในโปรแกรม 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, name, parent_node และอีก 10 รายการ.

คุณสมบัติ

ชื่อประเภทการเข้าถึงคำอธิบาย
radiusfloatอ่าน/เขียนรับหรือกำหนดค่ารัศมี.
segmentsintอ่าน/เขียนรับหรือกำหนดค่า segments.
theta_startfloatอ่าน/เขียนรับหรือกำหนดค่า theta start.
theta_lengthfloatอ่าน/เขียนรับหรือกำหนดความยาวของ theta.
cast_shadowsboolอ่าน/เขียนรับหรือกำหนดค่า cast shadows.
receive_shadowsboolอ่าน/เขียนรับหรือกำหนดการรับเงา.
visibleboolอ่าน/เขียนรับหรือกำหนดค่าความมองเห็น.
deformersList['Deformer']อ่านรับ deformers.
vertex_elementsList['VertexElement']อ่านรับองค์ประกอบเวอร์เท็กซ์.
control_points'ArrayListAdapter[Vector4]'อ่านรับจุดควบคุม.
parent_nodesList['Node']อ่านรับโหนดพาเรนท์.
parent_nodeOptional['Node']อ่าน/เขียนรับหรือกำหนดโหนดแม่.
excludedboolอ่าน/เขียนรับหรือกำหนดค่า excluded.
scene``อ่าน/เขียนรับหรือกำหนดฉาก.
namestrอ่าน/เขียนรับหรือกำหนดชื่อ.
propertiesPropertyCollectionอ่านรับคุณสมบัติ.

วิธีการ

ลายเซ็นคำอธิบาย
__init__(name: str, radius: float, segments: int, theta_start: float, theta_length: float)Calls init(name, radius, segments, theta_start, theta_length) บนอินสแตนซ์ Circle นี้.
to_mesh() → 'Mesh'เรียก to_mesh บนอินสแตนซ์ Circle นี้.
__init__(name: str)Calls init(name) บนอินสแตนซ์ Circle นี้.
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) บนอินสแตนซ์ Circle นี้.
create_element_uv(uv_mapping: 'TextureMapping', mapping_mode: 'MappingMode', reference_mode: 'ReferenceMode') → 'VertexElementUV'เรียก create_element_uv(uv_mapping, mapping_mode, reference_mode) บนอินสแตนซ์ Circle นี้.
add_element(element: 'VertexElement')Calls add_element(element) on this Circle instance.
get_element(element_type: 'VertexElementType')Calls get_element(element_type) on this Circle instance.
get_vertex_element_of_uv(texture_mapping: 'TextureMapping') → Optional['VertexElementUV']Calls get_vertex_element_of_uv(texture_mapping) on this Circle instance.
remove_property(property)Calls remove_property(property) on this Circle instance.
remove_property(property_name: str)เรียก remove_property(property_name) บนอินสแตนซ์ Circle นี้.
get_property(property: str)เรียก get_property(property) บนอินสแตนซ์ Circle นี้.
set_property(property: str, value)กำหนดค่าให้กับคุณสมบัติ.
find_property(property: str)เรียก find_property(property) บนอินสแตนซ์ Circle นี้.
get_bounding_box()คืนค่ากล่องขอบเขต.
get_entity_renderer_key()ไม่ได้รับการทำงานในรุ่น FOSS — โยนข้อผิดพลาดในขณะรันไทม์. คืนค่ากุญแจเรนเดอร์เอนทิตี้.

ดูเพิ่มเติม

 ภาษาไทย