Commit Graph

67 Commits

Author SHA1 Message Date
Chris Hennes
d2e51218c8 Path: Wrap PyArg_ParseTupleAndKeywords 2023-08-25 15:34:26 -05:00
Jonas Bähr
34b176c1db Remove C++ escaping from *Py.xml templates
Now all escaping required for the C++ code generation is done when the
.cpp/.h files are generated. Previously, only newlines were escaped
automatically. This was a) inconsistent and b) leaked c++ details into
the xml data.
In addition, the escaping is now done in one central place, harmonizing
the three previous implementations.

Pre-existing c++ escape sequences in the XML files have been replaced by
their literal equivalent so that the resulting python doc sting remains
unchanged.
2023-08-16 13:17:25 +02:00
wmayer
40a9f47489 Path: make export macro accessible in header file
It's not recommended any more to keep the export macro in the PreCompiled.h because many IDEs fail to fetch the export macro and raise a parsing error instead.
2023-08-08 17:27:28 +02:00
wmayer
88c6f05d06 Path: modernize C++: use override 2023-08-04 17:09:53 +02:00
wmayer
a7feccd03b Path: fixes #9403: Memory leak in Path 2023-05-12 10:43:29 +02:00
xtemp09
c59155b97d Fixed segmentation fault in Path workbench
Closes #6286.
2023-04-21 21:57:52 +07:00
Uwe
7e9fe12149 [Path] improve PreCompiled.h handling 2022-12-07 19:51:19 +01:00
Uwe
73b7547cd5 [Path] improve PreCompiled.h handling 2022-12-07 19:51:19 +01:00
luz paz
137a3640bf Path: remove leftover .zip archive in PathSimulator directory
Closes #7816
2022-12-03 18:10:34 -06:00
luz paz
f13299a5a6 Path: remove trailing whitespace 2022-11-18 00:01:25 +01:00
Uwe
633279663d [Path] PathSimulator: remove unused includes
- also some sorting
2022-11-11 04:04:33 +01:00
Markus Lampert
29255f0ffd Removed deprecated and obsolete Path.Tool and Path.Tooltable 2022-10-11 21:43:08 -07:00
berniev
180edfa3cc Mod: Single arg ctors must be explicit 2022-08-24 16:55:20 +02:00
berniev
71dc5ead2f Mod: Use override etc 2 2022-08-09 12:52:26 +02:00
berniev
f4ffd15864 Mod: redundant void 2 2022-08-08 10:27:50 +02:00
Uwe
c619e7bbda [Path] remove superfluous nullptr checks 2022-07-18 02:52:48 +02:00
wmayer
6a69efc4a6 Path: modernize C++11
* use nullptr
2022-03-23 19:26:15 +01:00
wmayer
0f9768fb33 Fix coverity issue:
* CID 332682: Resource leak
* CID 350607: Resource leak
* CID 332677: Resource leak
2022-03-14 11:35:04 +01:00
mosfet80
b31f4e3cb5 Path: fix build failure for OCCT >= 7.6.1 2022-02-09 12:55:37 +01:00
luz paz
ef824f12e2 Path: fix typo in author's name 2021-12-10 02:36:56 +01:00
luz paz
60c055e62d Path: Fix header uniformity and remove trailing whitespace
This PR fixes header uniformity across all Path files. It also removes all trailing whitespace.
2020-11-05 19:57:21 +01:00
luz.paz
d0d2096fc8 Fix typos [skip-ci]
Found via codespell v1.17.0.dev0  
``` 
codespell -q 3 -L aci,ake,aline,alle,alledges,alocation,als,ang,anid,ba,beginn,behaviour,bloaded,byteorder,calculater,cancelled,cancelling,cas,cascade,centimetre,childs,colour,colours,commen,connexion,currenty,dof,doubleclick,dum,eiter,elemente,ende,feld,finde,findf,freez,hist,iff,indicies,initialisation,initialise,initialised,initialises,initialisiert,ist,kilometre,lod,mantatory,methode,metres,millimetre,modell,nd,noe,normale,normaly,nto,numer,oder,orgin,orginx,orginy,ot,pard,pres,programm,que,recurrance,rougly,seperator,serie,sinc,strack,substraction,te,thist,thru,tread,uint,unter,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
```
2020-05-12 10:04:29 +02:00
Daniel Wood
ed30e0421b Try and catch errors when getting the tool profile 2020-05-04 20:53:36 +01:00
Daniel Wood
3003a16cc6 Clean up debug prints 2020-05-04 20:53:36 +01:00
Daniel Wood
9bdba32f54 check the toolbit shape is valid 2020-05-04 20:53:36 +01:00
Daniel Wood
f8e4222506 use the tool resolution to determin face position 2020-05-04 20:53:36 +01:00
Daniel Wood
455c04f978 Remove and silence some debug prints 2020-05-04 20:53:36 +01:00
Daniel Wood
6dd3e8b7a2 Extract the shape of the tool from the solid shape 2020-05-04 20:53:36 +01:00
Daniel Wood
4c7c000e69 use the tool resolution to determin face position 2020-05-04 20:53:36 +01:00
Daniel Wood
cdcac55e18 Remove and silence some debug prints 2020-05-04 20:53:35 +01:00
Daniel Wood
2ae9967b0f Extract the shape of the tool from the solid shape 2020-05-04 20:53:35 +01:00
Daniel Wood
b2c2cad07d use the tool resolution to determin face position 2020-05-04 20:52:40 +01:00
Daniel Wood
a6563c1170 Remove and silence some debug prints 2020-05-04 20:52:40 +01:00
Daniel Wood
19f3f9ebdd Extract the shape of the tool from the solid shape 2020-05-04 20:52:40 +01:00
Daniel Wood
9fa1a3e8ce Allow passing the tool shape from python 2020-05-04 20:52:40 +01:00
Daniel Wood
0d3d7157f8 pass the tool shape to the CSimTool and handle the shape internally 2020-05-04 20:52:40 +01:00
luz.paz
ec12ffae0c Path: source comment typo fixes
Found via `codespell`
2019-05-30 19:57:25 +02:00
Abdullah Tahiri
45f44a2d9f Path: PathSimulator PCH 2019-05-03 23:15:09 +02:00
wmayer
7e482a5002 PVS: V730 Not all members of a class are initialized inside the constructor 2019-03-12 18:33:25 +01:00
Ryan Pavlik
9fa22576b9 Fix ninja warnings about duplicate rules for Mod/Path/Init.py
Both Path/App and Path/PathSimulator/App were copying it.
2018-08-11 17:39:14 +02:00
Shai Seger
b2e9348892 fix FreeCad crash when no tool is assigned to an operation 2018-05-11 10:17:16 -03:00
wmayer
c7e9ff1b62 set exception message when returning with 0 2018-05-05 22:44:29 +02:00
Shai Seger
9111efacb2 fix bug tracker issue id:0003450 : Freecad crash when simulating without operations. 2018-05-04 00:59:16 +03:00
wmayer
b780ba650f fix scan coverity issues 2018-02-10 14:29:49 +01:00
wmayer
c16af94dbe fix warning: private field 'm_lx' is not used [-Wunused-private-field]
fix warning: private field 'm_ly' is not used [-Wunused-private-field]
2018-02-10 12:28:50 +01:00
Shai Seger
5fd64aa3eb Give default values to cutting edge angle so simulations with work even if user did not specify a valid cutting angle. 2018-01-24 17:43:06 +01:00
luz.paz
c53f8bbc15 Path: source typo fix 2018-01-15 21:05:03 -05:00
Sammel Lothar LTS
efaabab154 Fix Path Keep View and Sim in Sync,typo Linuxcnc_post 2018-01-09 16:46:12 -02:00
wmayer
2339d6b0be add occ library dir to PathSimulator 2017-11-01 13:19:09 +01:00
Shai Seger
eabaf52d53 PathSimulator: move all changes to branch path_simulator 2017-10-31 11:10:23 -02:00