跳到主要内容

GeometryRef

类型:
领域: 装配
推荐导入: from cadflow import GeometryRef

签名

class GeometryRef(kind: 'str', source_node_id: 'Optional[str]', geo_selector: 'Dict[str, Any]', flip: 'bool' = False, _metadata: 'Dict[str, Any]' = <factory>, _runtime: 'Dict[str, Any]' = <factory>) -> None

功能说明

GeometryRef 是 CadFlow 装配领域的公共类。

原始 API 说明

Serializable reference to a sub-shape selected via QL.

Wraps the geo_selector fingerprint + source graph node id so the exact sub-element (Face/Edge/Vertex) can be re-resolved at translation time or during constraint solving. When flip is True, the derived placement Z axis is negated.

其他公共导入路径

  • from cadflow.assembly import GeometryRef

参数

名称类型必需默认值源码说明
kind'str'-源码 Docstring 未单独说明。
source_node_id'Optional[str]'-源码 Docstring 未单独说明。
geo_selector'Dict[str, Any]'-源码 Docstring 未单独说明。
flip'bool'False源码 Docstring 未单独说明。
_metadata'Dict[str, Any]'&lt;factory&gt;源码 Docstring 未单独说明。
_runtime'Dict[str, Any]'&lt;factory&gt;源码 Docstring 未单独说明。

返回值

类型: None

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

异常

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

数据字段

名称类型默认值
kind'str'required
source_node_id'Optional[str]'required
geo_selector'Dict[str, Any]'required
flip'bool'False
_metadata'Dict[str, Any]'factory
_runtime'Dict[str, Any]'factory

公共成员

成员类型签名说明
to_dictmethod(self) -&gt; 'Dict[str, Any]'见成员签名。

行为与约束

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

导入检查

from cadflow import GeometryRef

相关内容