跳到主要内容

intersect

类型: 函数
领域: 建模与几何
推荐导入: from cadflow import intersect

签名

def intersect(*solids: 'Union[Solid, Sequence[Solid]]') -> 'Solid'

功能说明

intersect 是 CadFlow 建模与几何领域的公共函数。

原始 API 说明

Compute the boolean intersection of solids.

其他公共导入路径

  • from cadflow import intersect_rsolid

参数

名称类型必需默认值源码说明
solids'Union[Solid, Sequence[Solid]]'-One or more Solid objects or sequences of Solid. Nested sequences are flattened before processing.

返回值

类型: 'Solid'

Solid: The overlap region as a single solid.

Usage: Accepts one or more solids, including nested sequences, and returns a single Solid. If the inputs do not overlap meaningfully, the API raises a clear error instead of returning an empty list.

异常

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

行为与约束

  • 以下契约由当前公共运行时签名生成;所有权与工作流限制见对应领域说明。

导入检查

from cadflow import intersect

相关内容