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
| Name | Type | Access | Description |
|---|---|---|---|
visible | bool | Đọc / viết | Nhận hoặc đặt cái nhìn thấy. |
cast_shadows | bool | Đọc / viết | Gửi hoặc đặt các bóng râm. |
receive_shadows | bool | Đọc / viết | Nhận hoặc đặt những người nhận bóng. |
vertex_elements | List['VertexElement'] | Read | Nhận các yếu tố vertex. |
control_points | List[Vector4] | Read | Nhận được các điểm kiểm soát. |
parent_nodes | List['Node'] | Read | - Nhận các nút mẹ. |
parent_node | Optional['Node'] | Đọc / viết | Nhận hoặc đặt nút mẹ. |
excluded | bool | Đọc / viết | Nhận hoặc đặt những người bị loại trừ. |
scene | `` | Đọc / viết | Gặp hoặc đặt cảnh. |
name | str | Đọc / viết | Nhận hoặc đặt tên. |
properties | PropertyCollection | Read | Nhận được tài sản. |
Methods
| Signature | Description |
|---|---|
__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. |