Commit Graph

48 Commits

Author SHA1 Message Date
marioalexis
79b7bfd5d0 Draft: Remove Python 2 type support 2022-03-28 18:02:23 -03:00
marioalexis
5cc042379a Draft: Add functions to transform Cartesian coordinates to spherical and vice versa 2021-04-07 18:36:56 -03:00
vocx-fc
7b34a43c16 Draft: small fixes to the closest function.
Correct the Pythonic style for the changes made in 85286bf044.
2020-09-16 13:09:57 +02:00
paul lee
1ff7843357 [ DraftVecUtils.cloest ] Elaborate documentation 2020-09-09 16:01:39 +02:00
paul lee
1227bac5bf [ DraftVecUtils.closet ] Could return the distance (no unit) of the tested point from the found closest point. 2020-09-09 16:01:39 +02:00
Yorik van Havre
b63f380f61 Draft: Allow to define rounding value in DraftVecUtils.rounded 2020-06-11 14:15:04 +02:00
vocx-fc
5125c584bd Draft: DraftVecUtils.py clean up imports and messages
Small spacing fixes like imports in separate lines
for more clarity, and the position of the license.
Also use the new `messages` module to provide the functions
to print text to the console.
Also use `Matrix` prefixed by the `FreeCAD` module.
2020-04-07 18:12:06 +02:00
luz.paz
8cfa85cf18 Draft: [skip ci] Fix header uniformity
This PR fixes header uniformity across all Draft files
2019-12-27 00:16:12 +01:00
luz.paz
020a66cddf Fix misc. typos
Found via `codespell -q 3 -I ../fc-word-whitelist.txt -S ./.git,*.po,*.ts,./ChangeLog.txt,./src/3rdParty,./src/Mod/Assembly/App/opendcm,./src/CXX,./src/zipios++,./src/Base/swig*,./src/Mod/Robot/App/kdl_cp,./src/Mod/Import/App/SCL,./src/WindowsInstaller -L od,orign,orginx,orginy`
2019-08-14 14:36:53 -03:00
vocx-fc
6fcb697a92 Draft: DraftVecUtils, position of the Doxygen comments 2019-08-09 18:30:29 -03:00
vocx-fc
710fdb64a8 Draft: DraftVecUtils, improved docstrings and comments 2019-08-09 18:30:29 -03:00
vocx-fc
8803840b89 Draft: DraftVecUtils, improved docstrings and comments; check the isColinear() function, it tests for colinearity between vector differences, and not the vectors themselves. 2019-08-09 18:30:29 -03:00
vocx-fc
a1e92fc324 Draft: DraftVecUtils, improved docstrings; check the isColinear ffunction, because the test succeeds when there are only two vectors, no matter if they are colinear or not 2019-08-09 18:30:29 -03:00
vocx-fc
8cbadac987 Draft: DraftVecUtils, improved docstrings, particularly those with code examples; make sure they only list one return value; the description of that return indicates possible values 2019-08-09 18:30:29 -03:00
vocx-fc
f6bf353837 Draft: DraftVecUtils, improved docstrings 2019-08-09 18:30:29 -03:00
vocx-fc
a17e4ea0d3 Draft: DraftVecUtils, improved docstrings 2019-08-09 18:30:29 -03:00
vocx-fc
91ac85134e Draft: DraftVecUtils, improved docstrings 2019-08-09 18:30:29 -03:00
vocx-fc
4cd98820d4 Draft: DraftVecUtils, improved docstrings 2019-08-09 18:30:29 -03:00
vocx-fc
c648c7e72a Draft: DraftVecUtils, improved docstrings; there is a strange condition, the result is calculated only if the square of the magnitude of a vector is NOT 15, why is this? 2019-08-09 18:30:29 -03:00
vocx-fc
9b4cbb5078 Draft: DraftVecUtils, improved docstrings 2019-08-09 18:30:29 -03:00
vocx-fc
01ab3bd4ff Draft: DraftVecUtils, improved the docstrings 2019-08-09 18:30:29 -03:00
vocx-fc
6411571a10 Draft: DraftVecUtils, improved the docstrings 2019-08-09 18:30:29 -03:00
vocx-fc
800f69c634 Draft: DraftVecUtils, better docstrings; removed the last comma at the end of the list of vectors 2019-08-09 18:30:29 -03:00
vocx-fc
b0f09a7b98 Draft: DraftVecUtils, added docstrings; the test doesn't do anything because the variable doesn't change value 2019-08-09 18:30:29 -03:00
vocx-fc
d71b477333 Draft: DraftVecUtils, use docstrings, shorter lines 2019-08-09 18:30:29 -03:00
vocx-fc
7191d54767 Draft: DraftVecUtils, improved Pythonic spacing, and docstring 2019-08-09 18:30:29 -03:00
vocx-fc
6471404d4f Draft: DraftVecUtils, improved Pythonic spacing and variable name 2019-08-09 18:30:29 -03:00
vocx-fc
6be3cbfeb6 Draft: DraftVecUtils, improved Pythonic spacing around commas and operators 2019-08-09 18:30:29 -03:00
vocx-fc
aa3e5ed178 Draft: DraftVecUtils, improved Pythonic style, spacing and commas 2019-08-09 18:30:29 -03:00
vocx-fc
47cfe5cb92 Draft: DraftVecUtils, improved Pythonic style, spacing and commas 2019-08-09 18:30:29 -03:00
Yorik van Havre
a6334a4bfd Cleanup in doxygen stuff 2019-07-15 23:20:52 -03:00
cclauss
00d8f39840 Fix file, long, raw_input, and xrange for Python 3 2019-01-07 15:42:37 +01:00
looooo
6ae56b491f draft: move translation to DraftGui
otherwiser there are some strange ImportEroors.
2017-06-20 12:18:01 +02:00
wmayer
376b841623 add type 'long' to expected types list in scale and scaleTo 2017-06-19 19:19:17 +02:00
hgutsche
201c9d89b0 Some fixes for doygen syntax errors and some configuration to make it run smoother under Windows 2017-02-28 18:52:04 +01:00
luzpaz
c800bc1097 fix doxygen typo introduced to DraftVecUtils.py
typo from previous commit ba5c647ba6025db5ad183e5fe1071cbdf35d67a2
2017-02-05 10:33:33 -05:00
luzpaz
d5a38892d8 Draft: doxygen tweaks
Getting familiarized with doxygen by starting some initial work on Draft module
typo introduced from commit
2017-02-04 16:09:49 +01:00
Yorik van Havre
bf0d37bf28 Doc: Fixes in doxygen docs for Draft,Arch, FEM 2016-11-17 17:04:09 -02:00
Yorik van Havre
b00d09ce66 Extending doxygen stuff for Draft & Arch 2015-09-04 19:14:36 -03:00
Yorik van Havre
8365f55643 Draft: fixed precision problem - fixes #1940 2015-09-04 12:43:09 -03:00
Yorik van Havre
74cf72511a Draft: Improvements to Trimex tool - fixes #1598
* Autotrim 2 intersecting draft lines, wires or arcs
* Don't snap if CTRL is not pressed
* Allow to trim/extend against itself
2015-01-19 13:49:33 -02:00
Yorik van Havre
203fcb7a1b Draft: Adapted Draft module for python3 compatibility - issue #995 2014-10-05 19:40:14 -03:00
Yorik van Havre
d2e86b7566 Arch: Big cleanup - fixes #1524
* Removed redundant code in Arch objects
* Supports wandererfan's Units code in Draft module
* Cleanup of the IFC exporter
* Better support of extruded profiles in IFC export
2014-05-11 14:40:39 -03:00
Yorik van Havre
74ec8b4353 Draft: bugfix in offset - fixes #270 2014-01-01 13:59:44 -02:00
Yorik van Havre
3b76037a65 Draft: Dimension recode - fixes #1000, #852, #678
Draft dimensions have been recoded and should now behave better in non-XY planes,
and gained several new properties to adjust their look.
2013-11-13 19:25:01 -02:00
Yorik van Havre
4005b199e0 0001102: Updated all links to old freecad homepage and wiki to the new ones 2013-09-15 17:04:42 -03:00
Yorik van Havre
fb0540c87e Used Gui.doCommand() in all Draft commands 2012-05-31 11:34:01 -03:00
Yorik van Havre
28f386f3ab Renamed Draft fcvec and fcgeo modules
Draft/draftlibs/fcvec becomes Draft/DraftVecUtils
Draft/draftlibs/fcgeo becomes Draft/DraftGeomUtils
2012-05-22 11:45:40 -03:00