BRepModel
类型: 类
领域: 检查
推荐导入: from cadflow.inspect.brep import BRepModel
签名
class BRepModel(root: 'TopoDS_Shape', source: 'str | None', bodies: 'tuple[TopoDS_Solid, ...]', faces: 'tuple[TopoDS_Face, ...]', edges: 'tuple[TopoDS_Edge, ...]', vertices: 'tuple[TopoDS_Vertex, ...]', adjacency: 'dict[str, set[str]]', _maps: 'dict[EntityKind, TopTools_IndexedMapOfShape]') -> None
功能说明
BRepModel 是 CadFlow 检查领域的公共类。
原始 API 说明
One BREP with deterministic zero-based topology ids and incidence data.
参数
| 名称 | 类型 | 必需 | 默认值 | 源码说明 |
|---|---|---|---|---|
root | 'TopoDS_Shape' | 是 | - | 源码 Docstring 未单独说明。 |
source | 'str | None' | 是 | - | 源码 Docstring 未单独说明。 |
bodies | 'tuple[TopoDS_Solid, ...]' | 是 | - | 源码 Docstring 未单独说明。 |
faces | 'tuple[TopoDS_Face, ...]' | 是 | - | 源码 Docstring 未单独说明。 |
edges | 'tuple[TopoDS_Edge, ...]' | 是 | - | 源码 Docstring 未单独说明。 |
vertices | 'tuple[TopoDS_Vertex, ...]' | 是 | - | 源码 Docstring 未单独说明。 |
adjacency | 'dict[str, set[str]]' | 是 | - | 源码 Docstring 未单独说明。 |
_maps | 'dict[EntityKind, TopTools_IndexedMapOfShape]' | 是 | - | 源码 Docstring 未单独说明。 |
返回值
类型: None
源码 Docstring 未声明更多返回语义。
异常
源码 Docstring 未声明更窄的异常契约。类型、数值、所有权、路径或后端状态无效时,仍可能抛出相应公共异常。
数据字段
| 名称 | 类型 | 默认值 |
|---|---|---|
root | 'TopoDS_Shape' | required |
source | 'str | None' | required |
bodies | 'tuple[TopoDS_Solid, ...]' | required |
faces | 'tuple[TopoDS_Face, ...]' | required |
edges | 'tuple[TopoDS_Edge, ...]' | required |
vertices | 'tuple[TopoDS_Vertex, ...]' | required |
adjacency | 'dict[str, set[str]]' | required |
_maps | 'dict[EntityKind, TopTools_IndexedMapOfShape]' | required |
_material_union_cache | 'TopoDS_Shape | None' | None |
公共成员
| 成员 | 类型 | 签名 | 说明 |
|---|---|---|---|
adjacency_details | method | (self, entity_id: 'str') -> 'dict[str, Any]' | 见成员签名。 |
describe_entity | method | (self, entity_id: 'str', *, include_curve_definition: 'bool' = False, include_surface_definition: 'bool' = False, max_surface_control_points: 'int' = 256) -> 'dict[str, Any]' | 见成员签名。 |
direct_neighbors | method | (self, entity_id: 'str') -> 'list[str]' | 见成员签名。 |
entity_list | method | (self, kind: 'EntityKind') -> 'Sequence[TopoDS_Shape]' | 见成员签名。 |
from_shape | class method | (cls, shape: 'TopoDS_Shape', *, source: 'str | Path | None' = None) -> "'BRepModel'" | 见成员签名。 |
id_for_shape | method | (self, kind: 'EntityKind', shape: 'TopoDS_Shape') -> 'str' | 见成员签名。 |
parameter_groups | method | (self, *, max_groups: 'int' = 24, examples_per_group: 'int' = 3) -> 'dict[str, Any]' | Return bounded scalar carrier groups without inferring a pattern. |
resolve_entity | method | (self, entity_id: 'str') -> 'tuple[EntityKind, int, TopoDS_Shape]' | 见成员签名。 |
summary | method | (self, *, include_parameter_groups: 'bool' = False, max_parameter_groups: 'int' = 24, examples_per_group: 'int' = 3) -> 'dict[str, Any]' | 见成员签名。 |
行为与约束
- 以下契约由当前公共运行时签名生成;所有权与工作流限制见对应领域说明。
导入检查
from cadflow.inspect.brep import BRepModel