Files
make-cad/docs/api/solve_assembly_constraints_rassembly.md
T
NiJingzhe 5c39e82ae8 Regenerate API docs for assembly constraint surface
Regenerate docs/api and the skill pack mirror after the dataclass-field
extraction enhancement and the new connector/constraint docstrings. New
pages: GeometryRef, Connector, ConnectorRef, Constraint, ConstraintReport,
ConstraintResidual, ScalarLimit, make_face/edge/vertex_connector,
add_fixed/revolute/prismatic_constraint, solve/measure/inspect, ground/
unground, make_connector_ref, make_scalar_limit. All dataclass docs now
show full constructor signatures; solve_assembly_constraints documents
the limit-aware solving behavior.
2026-06-26 17:39:23 +08:00

29 lines
943 B
Markdown

# solve_assembly_constraints_rassembly
## API Definition
```python
def solve_assembly_constraints_rassembly(assembly: Assembly, strict: bool = True) -> Assembly
```
*Source: operations.py*
## Import Surface
- top-level: `from simplecadapi import solve_assembly_constraints_rassembly`
## Description
Solve fixed, revolute, and prismatic assembly constraints.
Solving is limit-aware: when a constraint carries a ``ScalarLimit``
(``angle_limit`` or ``distance_limit``), the drive scalar is clamped
into the closed range before placement propagation. When no drive
scalar is present but a limit exists, the current relative-frame
scalar is projected into the bounds. Unresolvable closed kinematic
loops fall back to a golden-section search over the limit bounds.
A ``ConstraintReport`` is recorded on the returned assembly under the
``constraint_report`` runtime key for later inspection via
``inspect_assembly_constraints_rassembly``.