Shell
类型: 类
领域: 建模与几何
推荐导入: from cadflow import Shell
签名
class Shell(shell: 'Any', cache: 'Optional[_TopologyEntityCache]' = None)
功能说明
Shell 是 CadFlow 建模与几何领域的公共类。
原始 API 说明
OCP-native connected surface shell with face and edge topology.
参数
| 名称 | 类型 | 必需 | 默认值 | 源码说明 |
|---|---|---|---|---|
shell | 'Any' | 是 | - | 源码 Docstring 未单独说明。 |
cache | 'Optional[_TopologyEntityCache]' | 否 | None | 源码 Docstring 未单独说明。 |
返回值
类型: Any
源码 Docstring 未声明更多返回语义。
异常
源码 Docstring 未声明更窄的异常契约。类型、数值、所有权、路径或后端状态无效时,仍可能抛出相应公共异常。
公共成员
| 成员 | 类型 | 签名 | 说明 |
|---|---|---|---|
get_area | method | (self) -> 'float' | Return the total area of every face in the shell. |
get_edges | method | (self, index: 'Optional[int]' = None) -> 'Union[List[Edge], Edge]' | 见成员签名。 |
get_faces | method | (self, index: 'Optional[int]' = None) -> 'Union[List[Face], Face]' | 见成员签名。 |
get_wires | method | (self, index: 'Optional[int]' = None) -> 'Union[List[Wire], Wire]' | Return the Shell's free boundary wires. |
is_closed | method | (self) -> 'bool' | Return whether the shell bounds a closed region. |
行为与约束
- 以下契约由当前公共运行时签名生成;所有权与工作流限制见对应领域说明。
导入检查
from cadflow import Shell