SketchSolverOptions
类型: 类
领域: 草图
推荐导入: from cadflow import SketchSolverOptions
签名
class SketchSolverOptions(tolerance: 'float' = 1e-07, max_iterations: 'int' = 80) -> None
功能说明
SketchSolverOptions 是 CadFlow 草图领域的公共类。
原始 API 说明
Backend-neutral options for one solve request.
A backend may not support every numerical hint. It must still preserve the result/status contract and must not silently invoke another backend.
参数
| 名称 | 类型 | 必需 | 默认值 | 源码说明 |
|---|---|---|---|---|
tolerance | 'float' | 否 | 1e-07 | 源码 Docstring 未单独说明。 |
max_iterations | 'int' | 否 | 80 | 源码 Docstring 未单独说明。 |
返回值
类型: None
源码 Docstring 未声明更多返回语义。
异常
源码 Docstring 未声明更窄的异常契约。类型、数值、所有权、路径或后端状态无效时,仍可能抛出相应公共异常。
数据字段
| 名称 | 类型 | 默认值 |
|---|---|---|
tolerance | 'float' | 1e-07 |
max_iterations | 'int' | 80 |
行为与约束
- 实例是不可变 dataclass 值;更新式工作流会返回替代值。
导入检查
from cadflow import SketchSolverOptions