跳到主要内容

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_facesmethod(self) -> "List['Face']"见成员签名。
get_areamethod(self) -> 'float'见成员签名。
get_centermethod(self) -> 'Vec3'见成员签名。
get_edgesmethod(self, index: 'Optional[int]' = None) -> 'Union[List[Edge], Edge]'见成员签名。
get_inner_wiresmethod(self, index: 'Optional[int]' = None) -> 'Union[List[Wire], Wire]'见成员签名。
get_normal_atmethod(self, u: 'float' = 0.5, v: 'float' = 0.5) -> 'Vec3'见成员签名。
get_outer_wiremethod(self) -> 'Wire'见成员签名。
get_wiresmethod(self, index: 'Optional[int]' = None) -> 'Union[List[Wire], Wire]'见成员签名。

行为与约束

  • 以下契约由当前公共运行时签名生成;所有权与工作流限制见对应领域说明。

导入检查

from cadflow import Face

相关内容