FreeCAD: master e81ca586

Author Committer Branch Timestamp Parent
vocx-fc yorik master 2020-06-09 20:23:23 master 9d0e4259
Changeset Draft: move make_dimension function to its own module

Previously the `make_dimension` and `make_angular_dimension`
functions were in `draftobjects/dimension.py`.
Now they are moved to `draftmake/make_dimension.py`.

The original `makeAngularDimension` function requires angles
in radians which is counterintuitive for most cases. Also
the order is `[big, small]`.

The new function `make_angular_dimension` accepts angles
in degrees, and the order is `[small, big]`. The older
function is retained for compatibility purposes.

Also perform several improvements such as PEP8 cleanup,
writing complete docstrings, type checking the input arguments,
and depreacting the older call.

The `Draft.py` module, Gui Command, unit test, and test script
are updated accordingly.
mod - src/Mod/Draft/CMakeLists.txt Diff File
mod - src/Mod/Draft/Draft.py Diff File
mod - src/Mod/Draft/draftguitools/gui_dimensions.py Diff File
add - src/Mod/Draft/draftmake/make_dimension.py Diff File
mod - src/Mod/Draft/draftobjects/dimension.py Diff File
mod - src/Mod/Draft/drafttests/draft_test_objects.py Diff File
mod - src/Mod/Draft/drafttests/test_creation.py Diff File