Commit Graph

54 Commits

Author SHA1 Message Date
aprospero
4c7fb9625b Draft: parametrize Draft vector utils precision (#20199)
* parametrize draft vector utils precision

* fix: a single function didn't get the complete latest update.

* compatibility: reintroduce DraftVecUtils.precision() as deprecated.
2025-04-07 23:12:02 +00:00
Kevin Martin
02ebb17558 Eliminate many "doing what you told me to" messages
These messages were perhaps originally intended as a debuggin aid but now add clutter to the output panes. Remaining messges are mostly the result of methods to display attributes of an object (which one could call from the Python console) or actually provide some information which would not be obvious from the circumstances
2024-02-02 08:58:45 -05:00
Roy-043
d0a87b24d9 Draft: implement new get_param functions (step 4)
See #11677
2023-12-13 19:39:35 +01:00
luzpaz
129d5882a7 Migrate domain name from freecadweb to freecad (#9352)
* Migrate domain name from freecadweb to freecad
* Migrate src/Mod/Material files
* Migrate Stylesheet related files
* Migrate *.svg files
* Migrate miscellaneous files
* Migrate some build files
* Migrate recently added TD AR_IRAM template files

Closes #6415
2023-04-24 15:19:20 -05:00
luzpaz
6802bed99d Fix various typos and whitespace 2023-03-10 14:40:46 +01:00
Jolbas
649857b58f return pure rotation from getPlaneRotation() 2023-02-28 01:07:56 +01:00
marioalexis
659e84e57f Draft: Remove Python 2 type support 2022-03-28 18:02:23 -03:00
marioalexis
d759292566 Draft: Add functions to transform Cartesian coordinates to spherical and vice versa 2021-04-07 18:36:56 -03:00
vocx-fc
7a93bcb151 Draft: small fixes to the closest function.
Correct the Pythonic style for the changes made in ea16bb9394.
2020-09-16 13:09:57 +02:00
paul lee
be42d1b6cc [ DraftVecUtils.cloest ] Elaborate documentation 2020-09-09 16:01:39 +02:00
paul lee
ea16bb9394 [ 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
415b0dce25 Draft: Allow to define rounding value in DraftVecUtils.rounded 2020-06-11 14:15:04 +02:00
vocx-fc
ad0a50c79a 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
ae7cb9e300 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
050ac16f1c 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
4b4ed9c804 Draft: DraftVecUtils, position of the Doxygen comments 2019-08-09 18:30:29 -03:00
vocx-fc
c64f8fc50f Draft: DraftVecUtils, improved docstrings and comments 2019-08-09 18:30:29 -03:00
vocx-fc
c143aee78c 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
93e284c183 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
7417c7cd66 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
fc8a606584 Draft: DraftVecUtils, improved docstrings 2019-08-09 18:30:29 -03:00
vocx-fc
bab3072044 Draft: DraftVecUtils, improved docstrings 2019-08-09 18:30:29 -03:00
vocx-fc
bb656df736 Draft: DraftVecUtils, improved docstrings 2019-08-09 18:30:29 -03:00
vocx-fc
65c46a24e6 Draft: DraftVecUtils, improved docstrings 2019-08-09 18:30:29 -03:00
vocx-fc
a927bc3099 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
f49d19eb25 Draft: DraftVecUtils, improved docstrings 2019-08-09 18:30:29 -03:00
vocx-fc
21e9f99845 Draft: DraftVecUtils, improved the docstrings 2019-08-09 18:30:29 -03:00
vocx-fc
50cc1fef5c Draft: DraftVecUtils, improved the docstrings 2019-08-09 18:30:29 -03:00
vocx-fc
40fbd91777 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
7088b14ba8 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
c0d3ab1731 Draft: DraftVecUtils, use docstrings, shorter lines 2019-08-09 18:30:29 -03:00
vocx-fc
87a6357160 Draft: DraftVecUtils, improved Pythonic spacing, and docstring 2019-08-09 18:30:29 -03:00
vocx-fc
0eb660a14c Draft: DraftVecUtils, improved Pythonic spacing and variable name 2019-08-09 18:30:29 -03:00
vocx-fc
03ffcb35f0 Draft: DraftVecUtils, improved Pythonic spacing around commas and operators 2019-08-09 18:30:29 -03:00
vocx-fc
b44d966984 Draft: DraftVecUtils, improved Pythonic style, spacing and commas 2019-08-09 18:30:29 -03:00
vocx-fc
753cc68555 Draft: DraftVecUtils, improved Pythonic style, spacing and commas 2019-08-09 18:30:29 -03:00
Yorik van Havre
8048f93627 Cleanup in doxygen stuff 2019-07-15 23:20:52 -03:00
cclauss
51ab27f54a Fix file, long, raw_input, and xrange for Python 3 2019-01-07 15:42:37 +01:00
looooo
fe66e96faf draft: move translation to DraftGui
otherwiser there are some strange ImportEroors.
2017-06-20 12:18:01 +02:00
wmayer
847a208868 add type 'long' to expected types list in scale and scaleTo 2017-06-19 19:19:17 +02:00
hgutsche
de8f66f857 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
09b1c5c488 fix doxygen typo introduced to DraftVecUtils.py
typo from previous commit 019b0e2529
2017-02-05 10:33:33 -05:00
luzpaz
019b0e2529 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
af97583026 Doc: Fixes in doxygen docs for Draft,Arch, FEM 2016-11-17 17:04:09 -02:00
Yorik van Havre
220afa90db Extending doxygen stuff for Draft & Arch 2015-09-04 19:14:36 -03:00
Yorik van Havre
989a5fa933 Draft: fixed precision problem - fixes #1940 2015-09-04 12:43:09 -03:00
Yorik van Havre
a91fcc681c 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
daedcf4f1c Draft: Adapted Draft module for python3 compatibility - issue #995 2014-10-05 19:40:14 -03:00
Yorik van Havre
2798de1afa 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
2bc15af126 Draft: bugfix in offset - fixes #270 2014-01-01 13:59:44 -02:00