FreeCAD: master 5dcb4ea1
Author | Committer | Branch | Timestamp | Parent |
---|---|---|---|---|
vocx-fc | yorik | master | 2020-05-25 02:29:08 | master 8573bc01 |
Changeset | Draft: clean up OrthoArray code Avoid `Draft.py` in the `make_ortho_array` function because it creates a circular dependency. Use internal functions to abstract the orthogonal arrays. The `_make_ortho_array` is a simple wrapper over the general `make_array` function. The result is four variants: - `make_ortho_array` - `make_ortho_array2d`, without the Z component - `make_rect_array`, strictly rectangular components - `make_rect_array2d`, strictly rectangular without the Z component Also use functions to perform checking of the inputs, whether these are vectors, numbers (integer and floats) or integers. Now the make function accepts as input a `"String"` which must be the `Label` of an object in the document, so it is easier to create arrays quickly from the Python console. Clean up the GuiCommand and task panel code, and avoid printing messages to the terminal, as this is already done by the make function. |
|||
mod - src/Mod/Draft/draftguitools/gui_orthoarray.py | Diff File | |||
mod - src/Mod/Draft/draftmake/make_orthoarray.py | Diff File | |||
mod - src/Mod/Draft/drafttaskpanels/task_orthoarray.py | Diff File |