ZShape
概述
ZShape 是 Aspose.3D FOSS 中用于 Python 的一个类。继承自:ParameterizedProfile。
符合 IFC 标准的 Z 形截面,由参数定义。
此类为 Python 程序中的 ZShape 对象声明了 8 个方法。可用的方法包括:__init__、find_property、get_bounding_box、get_entity_renderer_key、get_extent、get_property、remove_property、set_property。在安装了 Aspose.3D 用于 Python 的 FOSS 包之后,所有公共成员对任何 Python 应用程序均可访问。属性:depth、edge_radius、excluded、fillet_radius、flange_thickness、flange_width,以及另外 6 项。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
depth | float | 读写 | 获取或设置深度。 |
flange_width | float | 读写 | 获取或设置法兰宽度。 |
flange_thickness | float | 读写 | 获取或设置法兰厚度。 |
web_thickness | float | 读写 | 获取或设置腹板厚度。 |
fillet_radius | float | 读写 | 获取或设置圆角半径。 |
edge_radius | float | 读写 | 获取或设置边缘半径。 |
parent_nodes | List['Node'] | 读取 | 获取父节点。 |
parent_node | Optional['Node'] | 读写 | 获取或设置父节点。 |
excluded | bool | 读写 | 获取或设置排除项。 |
scene | `` | 读写 | 获取或设置场景。 |
name | str | 读写 | 获取或设置名称。 |
properties | PropertyCollection | 读取 | 获取属性。 |
方法
| 签名 | 描述 |
|---|---|
__init__(name: str) | Calls init(name) 在此 ZShape 实例上。 |
get_extent() → 'Vector2' | 获取 x 和 y 维度的范围。 |
get_entity_renderer_key() | 返回实体渲染器键。 |
get_bounding_box() → BoundingBox | 在 FOSS 版中未实现 — 在运行时抛出。 返回包围盒。 |
find_property(property_name: str) | 在此 ZShape 实例上调用 find_property(property_name)。 |
get_property(property: str) | 在此 ZShape 实例上调用 get_property(property)。 |
set_property(property: str, value) | 设置属性值。 |
remove_property(property) | 在此 ZShape 实例上调用 remove_property(property)。 |