Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GCS: New Constraint for equal size lines, avoiding to use an extra pa…
…rameter ============================================================================ This specific constraint removes the free parameter of the previous implementation. This solves: https://tracker.freecadweb.org/view.php?id=4501 fixes #4501 However, this implementation of equal size produces zero gradients when coordinates of lines are aligned, e.g. vertical or horizontal. These zero gradients, which are mathematically right ruin the diagnosis, which regards corresponding elements as fully constraint (because they are locked from a solver point of view), when they are simply locked, but are movable and constrainable. For this, when the rightful gradient is small enough (<1e-10) it is substituted by a surrogate gradient of 1e-10, which solves the problem with the diagnose, which treats as zero only values under 1e-13 (pivot threshold used in QR decomposition). This special behaviour fixes the wrong detection here: https://forum.freecadweb.org/viewtopic.php?f=8&t=53466&start=40#p464168 It also fixes this one: https://forum.freecadweb.org/viewtopic.php?p=468585#p468587
- Loading branch information
1 parent
ea49ed9
commit 5609269
Showing
2 changed files
with
160 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.