跳到主要内容

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'&lt;ConnectionRegionRole.CONTACT: 'contact'&gt;源码 Docstring 未单独说明。
metadata'dict[str, Any]'&lt;factory&gt;源码 Docstring 未单独说明。

返回值

类型: None

源码 Docstring 未声明更多返回语义。

异常

源码 Docstring 未声明更窄的异常契约。类型、数值、所有权、路径或后端状态无效时,仍可能抛出相应公共异常。

数据字段

名称类型默认值
region_id'str'required
component_id'str'required
geometry_ref'GeometryRef'required
role'ConnectionRegionRole | str'&lt;ConnectionRegionRole.CONTACT: 'contact'&gt;
metadata'dict[str, Any]'factory

公共成员

成员类型签名说明
from_dictclass method(cls, data: 'Mapping[str, Any]') -&gt; "'ConnectionRegion'"见成员签名。
to_dictmethod(self) -&gt; 'dict[str, Any]'见成员签名。

行为与约束

  • 实例是不可变 dataclass 值;更新式工作流会返回替代值。

导入检查

from cadflow import ConnectionRegion

相关内容