Skip to content

Arc length constraints not applying correctly until next invocation of solve #1378

@thekakkun

Description

@thekakkun

System information

  • SolveSpace version: 3.1~70bde63c
  • Operating system: Windows 10

Expected behavior

Constraints regarding arc lengths apply upon solve.

Actual behavior

There are cases in which constraints regarding arc lengths aren't solved when the values are set, but only when the solver is called again.

arcs.zip

In the attached file, updating the ratio constraint between arcs to be 5:1 will not actually apply correctly. The constraint is solved, only once the solver is called again (by dragging, adding a new constraint, etc.)

Additional information

I believe that the constraint formulas are based off the initial central angle of the arc, and different formulas are used depending on whether that angle is greater/less than 180 degrees. If that threshold is crossed during the solve step, the formula is not updated, so the solver ends up solving for the incorrect arc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions