Commit Graph

17700 Commits

Author SHA1 Message Date
Zheng, Lei
3fcbf71fb5 Base: misc patches
Convenience macros/function (in Interpreter.h)

* FC_PY_GetObject/Callable(), look for callables in a python object,
  which will be used in future patch to improve performance in various
  python observer/features.

* pyCall(WithKeywords)(), helper function to invoke the callable

Matrix4D:

* hasScale(), check if there is any scale in the transformation. If so,
  further check if the scale is uniform or not. This will be used in
  future patch for Part::TopoShape to decide which type of transform to
  apply.

Placement:

* translate/rotate(), new convenience API

Rotation:

* isSame/multiVec(), new convenience API

Polygon2d:

* Intersect(), GetCenter(), new convenience API.

FlagToggler:

* New class for exception safe flag toggling, similar to StateLocker
  but with template (actually, FlagToggler is added earlier by me).

BitsetLocker:

* New class for exception manipulation of a std::bitset variable.
2019-08-17 14:52:08 +02:00
Zheng, Lei
59417068f5 Base: improve exception
For better FC and Python exception mapping.
2019-08-17 14:52:08 +02:00
Zheng, Lei
aa7d780f5d Base::FileInfo: fix left overs in transient directory
Setting ReadWrite permssion removes executable permission, causing
error when removing directory on Linux.
2019-08-17 14:52:08 +02:00
Zheng, Lei
50cefc5104 Console: improve console logging facility 2019-08-17 14:52:08 +02:00
Yorik van Havre
c168a7d14b Arch/TD: Support for Arch BuildingParts in TD ArchView 2019-08-16 19:03:49 -03:00
sliptonic
e8f918927b Merge pull request #2412 from mlampert/feature/misc-improvements
Path: Feature/misc improvements
2019-08-16 15:49:31 -05:00
Yorik van Havre
6395d49b20 Merge branch 'master' of github.com:FreeCAD/FreeCAD 2019-08-16 16:41:08 -03:00
Yorik van Havre
33cb9ce0ba Draft: Shape2Dview now supports buildingparts 2019-08-16 16:40:50 -03:00
Yorik van Havre
d9cfd35008 Arch: misc small fixes to buildingpart 2019-08-16 16:38:43 -03:00
sliptonic
cb20414aeb Merge pull request #2426 from dubstar-04/Fixture-Travel-Height
[Path] Make the z traverse height equal to the stock z max plus the clearanc…
2019-08-16 14:24:23 -05:00
sliptonic
2cb77a28f4 Merge branch 'master' into feature/misc-improvements 2019-08-16 13:38:10 -05:00
sliptonic
64b4bb0f1b Merge pull request #2416 from IMbackK/HoleDiaDetection
[Path] Changed hole diameter detection to avoid tessilation inaccuracies in …
2019-08-16 13:37:42 -05:00
sliptonic
dc9e8575b9 Merge branch 'master' into HoleDiaDetection 2019-08-16 12:15:56 -05:00
Bernd Hahnebach
e94af7ff5e FEM: code formating, command manager, more formating 2019-08-16 08:33:30 +02:00
Bernd Hahnebach
008f9a63c5 FEM: code formating, command manager, fix indents 2019-08-16 08:33:24 +02:00
Bernd Hahnebach
3970ba04de FEM: code formating, commands, some new lines 2019-08-16 08:33:17 +02:00
Bernd Hahnebach
2ed7936c11 FEM: code formating, commands, use double quotes instead of single ones 2019-08-16 08:33:12 +02:00
Bernd Hahnebach
fbba0bbd38 FEM: code formating, small ones 2019-08-16 08:33:06 +02:00
Bernd Hahnebach
4bb32ae8d2 FEM: ccx tools, small indent code formating 2019-08-15 08:40:01 +02:00
Yorik van Havre
03b4fe50ed Gui: Added viewer.setName() python method 2019-08-15 00:20:59 -03:00
Yorik van Havre
be45c24964 Arch: Reorganized view properties of buildingParts 2019-08-15 00:20:24 -03:00
Yorik van Havre
46a1d1d254 Arch: Minor fixes to IFC export 2019-08-14 17:56:15 -03:00
Bernd Hahnebach
36d418349e Arch: make new property to use shape color instead of material color working for all Arch objs 2019-08-14 21:41:47 +02:00
Yorik van Havre
a937461d6f Arch: Merge of PR #2259 - Fix ifc project 2019-08-14 16:04:52 -03:00
Daniel Wood
ffb4aa5dcf Merge branch 'master' into Fixture-Travel-Height 2019-08-14 19:06:19 +01:00
furti
ce943982ec Arch: Fix missing cache value for SectionPlane
When the Arch SectionPlane was rendered via TechDraw in Solid mode, the
last parameter "fillSpaces" was not set for the svgcache.
So the next render operation threw an exeption because there where only
4 instead of 5 elements in the cache list.
2019-08-14 14:43:13 -03:00
vocx-fc
a66c8a3136 Draft: importSVG, commit 2a139a89 accidentally introduced blady merged code that produced syntax errors; then 537a011a tried to fix it by removing the syntax errors; however a large block of text needs to be removed as well; this was supposed to happen in pull request #2418; however, that pull request no longer merges cleanly so it was withdrawn; this commit finally fixes the problem. 2019-08-14 14:41:58 -03:00
luz.paz
bd985feef3 [AddonManager] Add CADExchanger workbench icon
Manually created this .svg file. This PR also fixes a previous commit typos for AirplaneDesign and A2plus workbenches that fail to make them display correctly in the AddonManager GUI
2019-08-14 14:40:07 -03:00
luz.paz
c02fb5f6b1 [AddonManager] Add ThreadProfile WB icon
+ fix whitespace issue in .qrc file
2019-08-14 14:38:52 -03:00
luz.paz
2469dacf74 Fix issue in previous commit 2019-08-14 14:36:53 -03: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
f7587c30d8 Draft: DraftTrackers.py, the docstrings need triple quotes and be next to the method or class name so they are correctly picked up by Doxygen or Sphinx to generate documentation; this complies with PEP 257 2019-08-14 14:34:31 -03:00
vocx-fc
a72d78507d Draft: DraftTools.py, the docstrings need triple quotes and be next to the method or class in order to be picked up by Doxygen or Sphinx; this complies with PEP 257. 2019-08-14 14:33:57 -03:00
vocx-fc
09046c98b1 Draft: Draft.py, the docstrings need triple quotes and be next to the method or class in order to be picked up by Doxygen or Sphinx; this complies with PEP 257 2019-08-14 14:33:15 -03:00
vocx-fc
cf368ac2b0 Draft: DraftLayer, the docstrings need triple quotes next to the method or class name so they are correctly picked up by the Doxygen or Sphinx program to generate the documentation 2019-08-14 14:32:26 -03:00
vocx-fc
445538c7dd Draft: WorkingPlane, improved Pythonic style, line length < 79 characters; shorter variables
to save space and have line lengths < 79 characters; added whitespace to comments
and used the self.__repr__() method to shorten the impression to the terminal;
broke the line inside parentheses to make the line shorter; inside alignToSelection() test for faces first
to use alignToFace(), which actually works; leave alignToCurve() for later,
as it doesn't actually do anything at the moment; improved docstrings in isOrtho(),
the orthogonality is tested for u, v, and axis, on the global axis +Y only;
removed wrongly placed comment in restore() method;
improved file docstring at the top.
2019-08-14 14:31:56 -03:00
vocx-fc
a2103d814f Draft: DraftGui.py, the docstrings need triple quotes and be next to the method or class in order to be picked up by Doxygen or Sphinx; this complies with PEP 257 2019-08-14 14:30:46 -03:00
Amritpal Singh
3f99446607 [AddonManager] Added RebarAddon icon. Issue link: https://github.com/amrit3701/FreeCAD-Reinforcement/issues/24 2019-08-14 14:30:15 -03:00
vocx-fc
5340140427 Draft: importDWG.py, use FreeCAD.Console.Print, instead of basic Python print() 2019-08-14 14:29:32 -03:00
vocx-fc
b0df1a6f21 Draft: importDWG.py, moved documentation text; added test for ODAFileConverter 2019-08-14 14:29:32 -03:00
vocx-fc
0804564d81 Draft: importDWG.py, improve Pythonic style, maximum line length; also translate the console messages 2019-08-14 14:29:32 -03:00
vocx-fc
12d59b76d3 Draft: importDWG.py, improve Pythonic style, spacing around commas 2019-08-14 14:29:32 -03:00
vocx-fc
0056edb6cb Draft: importDWG.py, added proper docstrings to the functions 2019-08-14 14:29:32 -03:00
paullee0
e4132f5800 Multi-Width to support Sketch with multiple wires
Discussion:-
https://forum.freecadweb.org/viewtopic.php?f=23&t=37708&p=321956#p321956
2019-08-14 14:28:34 -03:00
Dubstar_04
cce9d07216 Make the z traverse height equal to the stock z max plus the clearance height. This should help avoid fixtures and such. 2019-08-14 09:30:55 +01:00
Yorik van Havre
16c26cb3b1 Draft: Reorganizing DraftEdit and future Draft command modules 2019-08-12 21:30:45 -03:00
Yorik van Havre
537a011a1d Draft: Fixed leftover from badly merged commit 2019-08-12 19:46:40 -03:00
Yorik van Havre
a210ec3733 Arch: fixed wrong copy/paste, duh... 2019-08-12 19:40:33 -03:00
Yorik van Havre
347b818076 AddonManager: Check that the addon folder actually contains files before declaring it installed 2019-08-12 19:36:15 -03:00
Yorik van Havre
683397b187 Arch: Allow to turn off material color and object color syncing 2019-08-12 19:22:58 -03:00