Commit Graph

3653 Commits

Author SHA1 Message Date
wmayer
55bfdfb6d7 Path: modernize C++: replace 'typedef' with 'using' 2022-08-29 22:21:01 +02:00
agren
90ffdda622 Merge branch 'master' into remove-dead-code 2022-08-26 20:29:39 +02:00
berniev
6953310116 Mod: Single arg ctors must be explicit 2022-08-24 16:55:20 +02:00
Jonas Bähr
a1776d3e74 Fix build on MacOS-X 10.14: missing Xerces include dir
This undoes most of the Xerces related part of the commits listed below.
The issue resolved here is that the Xerces include dir *is* set in the
CMakeLists.txt of src/Base, but it got removed from various App and Gui
dirs in src/Mod. If those now include a header from src/Base, which
itself includes xercesc, the build fails using Apple clang version 11.0.0
(clang-1100.0.33.17) on Mojave, configured using cmake 3.22.1, with
errors like the following:

In file included from .../src/Mod/Part/App/FeaturePartBoolean.cpp:34:
In file included from .../src/App/Application.h:33:
.../src/Base/Parameter.h:54:10: fatal error: 'xercesc/util/XercesDefs.hpp' file not found
 #include <xercesc/util/XercesDefs.hpp>
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

Finally, a full list of the commits that introduced this spurious include
dir optimization for reference:
- Drawing: commit 96ad045b91
- Image: commit dde71a21d5
- Import: commit c9d28b542f
- Inspection: commit d41f55f382
- Mesh: commit 19072b0538
- Part: commit fe213a48f0
- PartDesign: commit b037d8e240
- Path: commit f23fa31f42
- Points: commit bec723ba17
- Raytracing: commit 08d4ac63a3
- ReverseEnginering: commit 5ca787cb0e
- Robot: commit bad4809a1c
- Sketcher: commit 3c96daf105
- Spreadsheet: commit 66e8a2bef3
- Start: commit c9dee5e70a
- Surface: commit 6b04215be6
- TechDraw: commit 5e6699e48d
- Test: commit ea5b45b92c
- Web: commit ee6d631531
2022-08-24 07:40:04 +02:00
luz paz
1a7ddfdc24 Fix typos and whitespace
Found via `codespell -q 3 -L aci,ake,aline,alle,alledges,alocation,als,ang,anid,anormal,apoints,ba,beginn,behaviour,bloaded,bottome,byteorder,calculater,cancelled,cancelling,cas,cascade,centimetre,childrens,childs,colour,colours,commen,connexion,currenty,dof,doubleclick,dum,eiter,elemente,ende,feld,finde,findf,freez,hist,iff,indicies,initialisation,initialise,initialised,initialises,initialisiert,inout,ist,itsel,kilometre,lod,mantatory,methode,metres,millimetre,modell,nd,noe,normale,normaly,nto,numer,oce,oder,ontop,orgin,orginx,orginy,ot,pard,parm,parms,pres,programm,que,rady,recurrance,ro,rougly,seperator,serie,sinc,siz,strack,substraction,te,technic,thist,thru,tread,uint,unter,uptodate,vertexes,wallthickness,whitespaces -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,./src/Doc/FreeCAD.uml,./src/Base/StackWalker.cpp,./build/doc/SourceDocu`
2022-08-23 18:49:47 +02:00
wmayer
5014bab534 Mod: replace std::ifstream/std::ofstream with Base::ifstream/Base::ofstream 2022-08-21 12:46:53 +02:00
wmayer
2062f9ce87 clang: fix warnings [-Winconsistent-missing-override] 2022-08-09 17:36:25 +02:00
berniev
ddafb98813 Mod: Use override etc 2 2022-08-09 12:52:26 +02:00
sliptonic
4b861b1083 Merge pull request #7333 from mlampert/bugfix/external-thread-issues
PATH: Bugfix/external thread issues
2022-08-08 10:11:23 -05:00
berniev
da9ebc572f Mod: redundant void 2 2022-08-08 10:27:50 +02:00
Markus Lampert
0200c8d70a Fixed radii calculations and their processing for external threads 2022-08-07 18:01:07 -07:00
Markus Lampert
1e8d1c621c Fixed external thread milling orientation and direction 2022-08-07 18:01:07 -07:00
Markus Lampert
38e34758c7 Fixed logic error in path selection drill gate. 2022-08-07 18:01:07 -07:00
Markus Lampert
ffe0961853 Added check to deal with float nan as cycle time result 2022-08-07 18:01:07 -07:00
berniev
b796a0d376 Mod: use empty 2022-08-06 19:30:13 +02:00
berniev
2d4c5a4cfb Mod: use emplace_back 2022-08-05 10:36:16 +02:00
Markus Lampert
3408d7c2ca Enabled exception handling again 2022-08-02 13:32:25 -07:00
Markus Lampert
729c24b0f1 Moved voronoi classes into Path.Voronoi module. 2022-08-02 13:32:25 -07:00
Markus Lampert
79021f4913 Renamed python class Voronoi to VoronoiDiagram 2022-08-02 13:32:25 -07:00
Markus Lampert
9cc1d277fa vcarve to color all borderline edges and ignore them for path generation 2022-08-02 13:32:25 -07:00
Markus Lampert
2ea498874f Added borderline interface to voronoi edge 2022-08-02 13:32:25 -07:00
luz paz
786741c0c0 Fix various 'testing inequality to None' syntax issues
Substitute `is not None` for `!= None`
2022-07-31 14:11:48 +02:00
Uwe
e61874be5a [Path] remove unnecessary Python check
we only support Python 3
2022-07-31 05:27:03 +02:00
wmayer
832717e446 Path: [skip ci] Fix several clazy issues:
* Missing reference in range-for with non trivial type [-Wclazy-range-loop-reference]
2022-07-25 12:21:32 +02:00
Uwe
cce5de8087 [Path] remove check for python 2 2022-07-23 15:12:35 +02:00
Uwe
3a50f95be4 Mod: remove some superfluous Boolean checks (#7213)
* Mod: remove some superfluous Python Boolean checks
2022-07-19 01:35:12 +02:00
Uwe
88a06f8f10 Mod: remove some unnecessary nullptr checks 2022-07-18 12:58:12 +02:00
Uwe
c35579227b [Path] remove superfluous nullptr checks 2022-07-18 02:52:48 +02:00
Mikael Ågren
81d29884fc Remove dead code 2022-07-17 17:39:20 +02:00
sliptonic
ef04487cd1 Merge pull request #7168 from sliptonic/feature/camoticstooltable
[Path] export a camotics tooltable
2022-07-17 08:42:43 -05:00
sliptonic
fa49c07840 Update src/Mod/Path/PathScripts/PathToolBitLibraryGui.py
Co-authored-by: Benjamin Bræstrup Sayoc <benj5378@outlook.com>
2022-07-16 12:16:14 -05:00
sliptonic
9f7c699fb8 GUI panel for chipbreaking 2022-07-16 11:30:16 -05:00
sliptonic
6d81f31f11 Additional changes to support G73 2022-07-16 11:30:16 -05:00
sliptonic
ff1e995f30 Generator can produce G73 (chipbreak) commands instead of G83.
Add tests
2022-07-16 11:30:16 -05:00
wmayer
343aadf02b Path: replace PyObject_IsTrue with Base::asBoolean 2022-07-16 12:44:38 +02:00
wmayer
b42e994ec9 Path: fixes -Woverloaded-virtual 2022-07-16 12:15:41 +02:00
Benjamin Alterauge
c50e7a29fe Remove duplicate source code 2022-07-16 10:55:24 +02:00
sliptonic
acf2a186e5 set PathArea section tolerance to 1e-07. 2022-07-14 08:53:26 -05:00
sliptonic
c126a8cced Merge pull request #7137 from Russ4262/fix/path_array_polar
Path: Fix Type=Polar regression in PathArray
2022-07-13 18:40:24 -05:00
sliptonic
e141910597 Fixes #7164 2022-07-12 14:15:52 -05:00
sliptonic
a78d504ea4 remove G53 from fixture list 2022-07-12 13:24:05 -05:00
sliptonic
ea1236664c Avoid python 3.6 error.
subprocess doesn't have capture_output.
Use subprocess.PIPE instead.
2022-07-12 12:23:06 -05:00
sliptonic
f4f37ecdd1 G38 fixes for probe visualization per mlampert 2022-07-12 12:22:36 -05:00
sliptonic
c4c553617f minor black fixes 2022-07-12 12:22:36 -05:00
sliptonic
792cb05473 export a camotics tooltable 2022-07-12 09:52:59 -05:00
LarryWoestman
e7a8fd18e0 Path: Reformatted to a line lenght of 88 using black. 2022-07-11 15:09:15 -07:00
LarryWoestman
62d8d8b993 Path: Added 4 refactored postprocessors and postprocessor tests. 2022-07-11 15:09:15 -07:00
LarryWoestman
8265de7b55 Path: Moved all of the global values to a dictionary named "values". 2022-07-11 15:09:14 -07:00
sliptonic
ff5e3734da Lower level discrete tests for Linuxcnc post 2022-07-11 15:09:14 -07:00
Russell Johnson
c52317a851 Path: Fix Type=Polar regression
This regression was introduced in PR #4818 with the refactor.  The source of the regression is that the `rotatePath()` method was not included in the new `PathArray` class created in the refactor.
This commit relocates the missing method to the `PathArray` class where it belongs, and corrects the `path` argument where the method is called.
2022-07-05 12:58:21 -05:00