跳到主要内容

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_detailsmethod(self, entity_id: 'str') -> 'dict[str, Any]'见成员签名。
describe_entitymethod(self, entity_id: 'str', *, include_curve_definition: 'bool' = False, include_surface_definition: 'bool' = False, max_surface_control_points: 'int' = 256) -> 'dict[str, Any]'见成员签名。
direct_neighborsmethod(self, entity_id: 'str') -> 'list[str]'见成员签名。
entity_listmethod(self, kind: 'EntityKind') -> 'Sequence[TopoDS_Shape]'见成员签名。
from_shapeclass method(cls, shape: 'TopoDS_Shape', *, source: 'str | Path | None' = None) -> "'BRepModel'"见成员签名。
id_for_shapemethod(self, kind: 'EntityKind', shape: 'TopoDS_Shape') -> 'str'见成员签名。
parameter_groupsmethod(self, *, max_groups: 'int' = 24, examples_per_group: 'int' = 3) -> 'dict[str, Any]'Return bounded scalar carrier groups without inferring a pattern.
resolve_entitymethod(self, entity_id: 'str') -> 'tuple[EntityKind, int, TopoDS_Shape]'见成员签名。
summarymethod(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

相关内容