Geometry

Overview

Geometry là một lớp trong Aspose.3D FOSS cho Python. Dòng thừa kế từ: Entity.

Geometry.create_element creates a VertexElement of the given type, mapping and reference modes.

Khóa học này cung cấp 13 phương pháp để làm việc với các đối tượng Geometry trong các chương trình Python. Các phương pháp có sẵn bao gồm: __init__, add_element, create_element, create_element_uv, find_property, get_bounding_box, get_element, get_entity_renderer_key, get_property, get_vertex_element_of_uv, remove_property, set_property. Tất cả các thành viên công cộng đều có thể truy cập bất kỳ ứng dụng Python nào sau khi cài đặt Aspose.3D FOSS cho gói Python. Tài sản : cast_shadows, control_points, excluded, name, parent_node, parent_nodes,Và 5 nhiều hơn nữa.

Properties

NameTypeAccessDescription
visibleboolĐọc / viếtNhận hoặc đặt cái nhìn thấy.
cast_shadowsboolĐọc / viếtGửi hoặc đặt các bóng râm.
receive_shadowsboolĐọc / viếtNhận hoặc đặt những người nhận bóng.
vertex_elementsList['VertexElement']ReadNhận các yếu tố vertex.
control_pointsList[Vector4]ReadNhận được các điểm kiểm soát.
parent_nodesList['Node']Read- Nhận các nút mẹ.
parent_nodeOptional['Node']Đọc / viếtNhận hoặc đặt nút mẹ.
excludedboolĐọc / viếtNhận hoặc đặt những người bị loại trừ.
scene``Đọc / viếtGặp hoặc đặt cảnh.
namestrĐọc / viếtNhận hoặc đặt tên.
propertiesPropertyCollectionReadNhận được tài sản.

Methods

SignatureDescription
__init__(name: str)
create_element(element_type: 'VertexElementType', mapping_mode: 'MappingMode', reference_mode: 'ReferenceMode')'VertexElement'Tạo một VertexElement của loại, chế độ bản đồ và tham chiếu cụ thể
create_element_uv(uv_mapping: 'TextureMapping', mapping_mode: 'MappingMode', reference_mode: 'ReferenceMode')'VertexElementUV'Tạo một UV VertexElement cho bản đồ và chế độ cấu trúc cụ thể
add_element(element: 'VertexElement')Thêm VertexElement cung cấp vào bộ sưu tập các yếu tố của địa chất
get_element(element_type: 'VertexElementType')Trở lại VertexElement đầu tiên phù hợp với loại yếu tố được chỉ định
get_vertex_element_of_uv(texture_mapping: 'TextureMapping')Optional['VertexElementUV']Trả lại UV VertexElement cho bản đồ văn hóa cụ thể, hoặc Không có
remove_property(property)Xóa tài sản bằng cách tham chiếu đối tượng hoặc bằng tên của nó
remove_property(property_name: str)
get_property(property: str)
set_property(property: str, value)Đặt giá trị tài sản.
find_property(property: str)Tìm kiếm một tài sản theo tên và trả lại nó nếu tìm thấy
get_bounding_box()Trở lại hộp kết nối.
get_entity_renderer_key()Không được thực hiện trong phiên bản FOSS - ném vào thời gian chạy. Trả lại khóa render của entity.

See Also

 Tiếng Việt