FreeCAD: master cb5aa765

Author Committer Branch Timestamp Parent
vocx-fc yorik master 2020-04-07 23:57:44 master 8ea1358d
Changeset Draft: move Join GuiCommand to gui_join module

Occasionally it fails to join lines even if the lines
visually share a point.

This is a rounding error in the comparison of the shared point;
a small distance will result in the points being considered
different and thus the lines not joining.

The solution is to test properly the two points using
`DraftVecUtils.equals` which considers the value of
the `precision` set in the Draft preferences.
mod - src/Mod/Draft/CMakeLists.txt Diff File
mod - src/Mod/Draft/Draft.py Diff File
mod - src/Mod/Draft/DraftTools.py Diff File
add - src/Mod/Draft/draftguitools/gui_join.py Diff File