LinearExtrusion

LinearExtrusion

概述

LinearExtrusion 是 Aspose.3D FOSS 中用于 Python 的类。继承自:Entity。

LinearExtrusion 通过沿某个方向挤压,将二维形状转换为三维网格,且高度、切片数和扭转可配置。

此类为 Python 程序中的 LinearExtrusion 对象声明了 9 个方法。可用的方法包括:__init__、find_property、get_bounding_box、get_entity_renderer_key、get_property、remove_property、set_property、to_mesh。在安装了 Aspose.3D FOSS for Python 包之后,所有公共成员对任何 Python 应用程序均可访问。属性:center、direction、excluded、height、name、parent_node,以及另外 7 项。

属性

名称类型访问描述
shape'Profile'读写获取或设置形状。
direction'Vector3'读写获取或设置方向。
heightfloat读写获取或设置高度。
slicesint读写获取或设置切片。
centerbool读写获取或设置中心。
twist_offset'Vector3'读写获取或设置扭转偏移。
twistfloat读写获取或设置扭转。
parent_nodesList['Node']读取获取父节点。
parent_nodeOptional['Node']读写获取或设置父节点。
excludedbool读写获取或设置已排除的项。
scene``读写获取或设置场景。
namestr读写获取或设置名称。
propertiesPropertyCollection读取获取属性。

方法

签名描述
__init__(name: str, shape: 'Profile', height: float)Calls init(name, shape, height) 在此 LinearExtrusion 实例上。
to_mesh() → 'Mesh'在 FOSS 版中未实现 — 在运行时抛出异常。 返回一个表示挤出几何体的 Mesh 对象
__init__(name: str)Calls init(name) 在此 LinearExtrusion 实例上。
get_bounding_box() → BoundingBox在 FOSS 版中未实现 — 在运行时抛出。 返回边界框。
get_entity_renderer_key()在 FOSS 版中未实现 — 在运行时抛出。 返回实体渲染器键。
find_property(property_name: str)在此 LinearExtrusion 实例上调用 find_property(property_name)。
get_property(property: str)在此 LinearExtrusion 实例上调用 get_property(property)。
set_property(property: str, value)设置属性值。
remove_property(property)在此 LinearExtrusion 实例上调用 remove_property(property)。

另请参阅

 中文