ConnectionRegion
类型: 类
领域: 物理连接
推荐导入: from cadflow import ConnectionRegion
签名
class ConnectionRegion(region_id: 'str', component_id: 'str', geometry_ref: 'GeometryRef', role: 'ConnectionRegionRole | str' = <ConnectionRegionRole.CONTACT: 'contact'>, metadata: 'dict[str, Any]' = <factory>) -> None
功能说明
ConnectionRegion 是 CadFlow 物理连接领域的公共类。
原始 API 说明
Component-local BREP region participating in a physical connection.
其他公共导入路径
from cadflow.physical import ConnectionRegion
参数
| 名称 | 类型 | 必需 | 默认值 | 源码说明 |
|---|---|---|---|---|
region_id | 'str' | 是 | - | 源码 Docstring 未单独说明。 |
component_id | 'str' | 是 | - | 源码 Docstring 未单独说明。 |
geometry_ref | 'GeometryRef' | 是 | - | 源码 Docstring 未单独说明。 |
role | 'ConnectionRegionRole | str' | 否 | <ConnectionRegionRole.CONTACT: 'contact'> | 源码 Docstring 未单独说明。 |
metadata | 'dict[str, Any]' | 否 | <factory> | 源码 Docstring 未单独说明。 |
返回值
类型: None
源码 Docstring 未声明更多返回语义。
异常
源码 Docstring 未声明更窄的异常契约。类型、数值、所有权、路径或后端状态无效时,仍可能抛出相应公共异常。
数据字段
| 名称 | 类型 | 默认值 |
|---|---|---|
region_id | 'str' | required |
component_id | 'str' | required |
geometry_ref | 'GeometryRef' | required |
role | 'ConnectionRegionRole | str' | <ConnectionRegionRole.CONTACT: 'contact'> |
metadata | 'dict[str, Any]' | factory |
公共成员
| 成员 | 类型 | 签名 | 说明 |
|---|---|---|---|
from_dict | class method | (cls, data: 'Mapping[str, Any]') -> "'ConnectionRegion'" | 见成员签名。 |
to_dict | method | (self) -> 'dict[str, Any]' | 见成员签名。 |
行为与约束
- 实例是不可变 dataclass 值;更新式工作流会返回替代值。
导入检查
from cadflow import ConnectionRegion