Face
类型: 类
领域: 建模与几何
推荐导入: from cadflow import Face
签名
class Face(face: 'Any', cache: 'Optional[_TopologyEntityCache]' = None)
功能说明
Face 是 CadFlow 建模与几何领域的公共类。
原始 API 说明
OCP-native face wrapper with tag support.
参数
| 名称 | 类型 | 必需 | 默认值 | 源码说明 |
|---|---|---|---|---|
face | 'Any' | 是 | - | 源码 Docstring 未单独说明。 |
cache | 'Optional[_TopologyEntityCache]' | 否 | None | 源码 Docstring 未单独说明。 |
返回值
类型: Any
源码 Docstring 未声明更多返回语义。
异常
源码 Docstring 未声明更窄的异常契约。类型、数值、所有权、路径或后端状态无效时,仍可能抛出相应公共异常。
公共成员
| 成员 | 类型 | 签名 | 说明 |
|---|---|---|---|
get_adjacent_faces | method | (self) -> "List['Face']" | 见成员签名。 |
get_area | method | (self) -> 'float' | 见成员签名。 |
get_center | method | (self) -> 'Vec3' | 见成员签名。 |
get_edges | method | (self, index: 'Optional[int]' = None) -> 'Union[List[Edge], Edge]' | 见成员签名。 |
get_inner_wires | method | (self, index: 'Optional[int]' = None) -> 'Union[List[Wire], Wire]' | 见成员签名。 |
get_normal_at | method | (self, u: 'float' = 0.5, v: 'float' = 0.5) -> 'Vec3' | 见成员签名。 |
get_outer_wire | method | (self) -> 'Wire' | 见成员签名。 |
get_wires | method | (self, index: 'Optional[int]' = None) -> 'Union[List[Wire], Wire]' | 见成员签名。 |
行为与约束
- 以下契约由当前公共运行时签名生成;所有权与工作流限制见对应领域说明。
导入检查
from cadflow import Face