FlexibleMesh
类型: 类
领域: 柔性几何
推荐导入: from cadflow.flexible import FlexibleMesh
签名
class FlexibleMesh(vertices: 'np.ndarray', normals: 'np.ndarray', triangles: 'np.ndarray', panels: 'tuple[FlexiblePanelRange, ...]') -> None
功能说明
保存组合柔性网格,并提供测量和 OBJ/STL/JSON 导出。
原始 API 说明
FlexibleMesh(vertices: 'np.ndarray', normals: 'np.ndarray', triangles: 'np.ndarray', panels: 'tuple[FlexiblePanelRange, ...]')
参数
| 名称 | 类型 | 必需 | 默认值 | 源码说明 |
|---|---|---|---|---|
vertices | 'np.ndarray' | 是 | - | 源码 Docstring 未单独说明。 |
normals | 'np.ndarray' | 是 | - | 源码 Docstring 未单独说明。 |
triangles | 'np.ndarray' | 是 | - | 源码 Docstring 未单独说明。 |
panels | 'tuple[FlexiblePanelRange, ...]' | 是 | - | 源码 Docstring 未单独说明。 |
返回值
类型: None
源码 Docstring 未声明更多返回语义。
异常
源码 Docstring 未声明更窄的异常契约。类型、数值、所有权、路径或后端状态无效时,仍可能抛出相应公共异常。
数据字段
| 名称 | 类型 | 默认值 |
|---|---|---|
vertices | 'np.ndarray' | required |
normals | 'np.ndarray' | required |
triangles | 'np.ndarray' | required |
panels | 'tuple[FlexiblePanelRange, ...]' | required |
公共成员
| 成员 | 类型 | 签名 | 说明 |
|---|---|---|---|
bounds | property | - | 见成员签名。 |
is_watertight | property | - | 见成员签名。 |
surface_area | property | - | 见成员签名。 |
triangle_count | property | - | 见成员签名。 |
vertex_count | property | - | 见成员签名。 |
write_json | method | (self, path: 'str | Path') -> 'Path' | 见成员签名。 |
write_obj | method | (self, path: 'str | Path') -> 'Path' | 见成员签名。 |
write_stl | method | (self, path: 'str | Path') -> 'Path' | Write a binary STL containing the complete static shell model. |
行为与约束
- 实例是不可变 dataclass 值;更新式工作流会返回替代值。
导入检查
from cadflow.flexible import FlexibleMesh