cut
类型: 函数
领域: 建模与几何
推荐导入: from cadflow import cut
签名
def cut(*solids: 'Union[Solid, Sequence[Solid]]', skip_non_intersecting: 'bool' = True, tracking_policy: 'TrackingPolicy | str' = <TrackingPolicy.FULL: 'full'>) -> 'Solid'
功能说明
cut 是 CadFlow 建模与几何领域的公共函数。
原始 API 说明
Compute the boolean difference of solids.
其他公共导入路径
from cadflow import cut_rsolid
参数
| 名称 | 类型 | 必需 | 默认值 | 源码说明 |
|---|---|---|---|---|
solids | 'Union[Solid, Sequence[Solid]]' | 否 | - | One or more Solid objects or sequences of Solid. Nested sequences are flattened before processing; the first solid is the base, the rest are subtracted in order. |
skip_non_intersecting | 'bool' | 否 | True | When True, tools with no meaningful intersection are ignored for interactive convenience. Graph replay records this flag and should use False for strict diagnostic workflows. |
tracking_policy | 'TrackingPolicy | str' | 否 | <TrackingPolicy.FULL: 'full'> | FULL computes topology history and lineage. GRAPH keeps the replayable operation node without computing a TopoDelta. |
返回值
类型: 'Solid'
Solid: The cut result solid.
Usage: Accepts a base solid followed by one or more tool solids, including nested sequences, and returns a single Solid.
异常
源码 Docstring 未声明更窄的异常契约。类型、数值、所有权、路径或后端状态无效时,仍可能抛出相应公共异常。
行为与约束
- 以下契约由当前公共运行时签名生成;所有权与工作流限制见对应领域说明。
导入检查
from cadflow import cut