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]' | 否 | <factory> | 源码 Docstring 未单独说明。 |
_runtime | 'Dict[str, Any]' | 否 | <factory> | 源码 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_dict | method | (self) -> 'Dict[str, Any]' | 见成员签名。 |
行为与约束
- 实例是不可变 dataclass 值;更新式工作流会返回替代值。
导入检查
from cadflow import GeometryRef