Skip to main content

solve_assembly_constraints_rassembly

Kind: Function
Domain: Assembly
Canonical import: from cadflow import solve_assembly_constraints_rassembly

Signature

def solve_assembly_constraints_rassembly(assembly: 'Assembly', strict: 'bool' = True) -> 'Assembly'

Description

Solve fixed, revolute, and prismatic assembly constraints.

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.

Parameters

NameTypeRequiredDefaultSource description
assembly'Assembly'yes-Not explicitly described in the source docstring.
strict'bool'noTrueNot explicitly described in the source docstring.

Returns

Type: 'Assembly'

The source docstring does not declare additional return semantics.

Errors

The source docstring does not declare a narrower exception contract. Invalid types, values, ownership, paths, or backend state may still raise the corresponding public error.

Behavior and constraints

  • The contract below is generated from the current public runtime signature. Check domain notes for ownership and workflow constraints.

Import check

from cadflow import solve_assembly_constraints_rassembly

See also