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