Commit Graph

306 Commits

Author SHA1 Message Date
wmayer
e4d1ed8366 Base: rename BaseExceptionFreeCADError to PyExc_FC_GeneralError 2022-03-17 14:45:48 +01:00
wmayer
1f12dca2b4 Py: replace BaseExceptionFreeCADError with more suitable exception types 2022-03-17 13:54:23 +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
wmayer
08b77bff08 Core/Mod: modernize C++11
* use nullptr
2022-03-09 21:55:31 +01:00
Uwe
c4d0eb2f11 [Path] Voronoi: add include needed to compile with the CI 2022-02-28 04:01:53 +01:00
Uwe
d24e321364 [Path] Voronoi: add include needed to compile with the CI 2022-02-28 03:56:45 +01:00
Uwe
7d83d141d3 [Path] Voronoi: remove unused includes 2022-02-28 03:46:15 +01:00
luz paz
fd3f2b0092 Fix various typos and refinements 2022-01-06 20:22:34 +01:00
wmayer
eacca01b8e Path: [skip ci] partially fix issue 0004765: [MSVC][Build][Permissive-][std:c++latest] FreeCAD failed to build on MSVC 2021-11-01 19:32:21 +01:00
wmayer
a7f9c2f1b9 OCCT: port FreeCAD sources to version 7.6
SMESH is not yet ported
Although FreeCAD code compiles with OCCT 7.6 it doesn't work at the moment
2021-10-09 13:49:02 +02:00
wmayer
8cbd92d874 port to MSYS2/clang 2021-09-19 19:49:44 +02:00
wmayer
9ce79bf3c7 Mod: fix warning [-Wmacro-redefined] 2021-09-14 22:57:17 +02:00
luz paz
90e5841aad Fix typos
Found via `codespell -q 3 -L aci,ake,aline,alle,alledges,alocation,als,ang,anid,apoints,ba,beginn,behaviour,bloaded,bottome,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,inout,ist,kilometre,lod,mantatory,methode,metres,millimetre,modell,nd,noe,normale,normaly,nto,numer,oder,ontop,orgin,orginx,orginy,ot,pard,parms,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,./build/doc/SourceDocu`
2021-06-17 08:02:57 +02:00
wmayer
f439e62639 Path: [skip ci] fix memory leaks 2021-04-27 14:32:35 +02:00
wmayer
0e7d9171db Path: [skip ci] fix memory leaks 2021-04-27 13:02:57 +02:00
wmayer
adc5ffa803 Path: remove some more deprecated Py2 code 2021-04-26 11:11:35 +02:00
Markus Lampert
5def0433cd Fixed angle detection 2021-02-15 23:23:16 -08:00
J-Dunn
a16bdcaba6 add comment about clearing Py::Dict when changing C++ data 2021-01-25 11:01:37 +01:00
J-Dunn
097cf2bc64 Path: fix unnecessary copy on read for Command.parameters dict
Contents of underlying c++ std::map data is copied to a new PyDict on every read. This is contrary to expected python behaviour which would normally just return the pointer to a python object and increment the reference counter for it.  This was leading to massive redundant deletion and copying in all post processors which reference this variable in a nested loop. This PR adds a permanent dict member to the class and keeps track of changes to avoid unnecessary copying.
2021-01-25 11:01:36 +01:00
wmayer
d7a8cf21aa Path: [skip ci] fix build failure when using boost 1.75 2021-01-05 15:12:46 +01:00
Mateusz Skowroński
78492b5bb7 Fix build warnings from deprecated Boost headers (1.74) 2021-01-02 10:43:56 +01:00
wmayer
5cc43c0306 Path: [skip ci] fix Python 3.9 deprecation warning 2020-12-23 17:41:30 +01:00
sliptonic
3754ae123a Merge branch 'master' into feature/suppress-warnings-preferences 2020-12-18 11:12:48 -06:00
wmayer
5b4c61e175 Path: [skip ci] fix TooltablePy::getTools to avoid possible double destruction of a Tool instance 2020-12-16 10:34:24 +01:00
Markus Lampert
933e13131e Added warning suppression for all missing speeds and changed default to true 2020-12-15 20:05:42 -08:00
sliptonic
4f0239a3ec Merge pull request #4132 from gauna85/Path
[Path] Check if startpoint is not lower than bounds in order to work always …
2020-12-14 12:21:20 -06:00
wmayer
544beb54e7 Path: [skip ci] fix memory leak in TooltablePy::getTools()
For some background information see: https://forum.freecadweb.org/viewtopic.php?f=15&t=50583&start=20#p457516
2020-12-14 17:19:52 +01:00
gauna85
4b6417ab5a Merge branch 'master' into Path 2020-12-13 19:35:43 +01:00
Stefan Endres
8992ba4f26 Path: Check if startpoint is not lower than bounds in order to work always from top to bottom 2020-12-13 19:34:02 +01:00
wmayer
b3cd06afe8 Py: fix memory leaks by incorrect use of PyList_Append 2020-12-13 16:30:04 +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
f839820817 Fix various typos [skip-ci]
Found via `codespell v2.0.dev`  
```
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-11-04 10:18:30 +01:00
Markus Lampert
982656babe Remove app include files from precompile guard 2020-10-25 16:33:13 -07:00
Markus Lampert
318ad0fb65 Include proper model headers for python files. 2020-10-25 16:33:13 -07:00
Markus Lampert
3c4bccbf6c Fixed parabola calculation if vornonoi edge starts close to its location. 2020-10-25 16:33:13 -07:00
Markus Lampert
0d747d7abd Fixed voronoi parabola creation with correct orientation. 2020-10-25 16:33:13 -07:00
Markus Lampert
35da5c890c Replaced toGeom with toPoint for VoronoiVertex and toShape for VoronoiEdge - results in arbitrary orientation of parabola for multiple z 2020-10-25 16:33:13 -07:00
Markus Lampert
d3615f7e54 Added equal/not equal comparison to voronoi python objects with unit tests. 2020-10-25 16:33:13 -07:00
Priit Laes
961e4d75b1 build: boost: Clean up branches requiring boost-1.55 2020-10-13 12:56:28 +02:00
Markus Lampert
574bdd2d09 Using python type conversion to return voronoi element color 2020-10-10 18:10:06 -07:00
luz paz
df93939be3 Fix various typos [skip-ci]
Found via `codespell v2.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-10-08 18:21:15 +02:00
wmayer
0c1f17d516 Path: [skip ci] fix build failure on Windows if PCH is disabled 2020-10-08 10:00:31 +02:00
Markus Lampert
7ea1bb0cb7 Dealing with 32bit compile error of Voronoi interface. 2020-10-04 22:44:45 -07:00
wmayer
0cc65089c4 Path: [skip ci] fix memory leak in CommandPy::getParameters()
For some background information see: https://forum.freecadweb.org/viewtopic.php?f=15&t=50583
2020-10-04 19:43:54 +02:00
Markus Lampert
a71632b914 More integer type cleanup for the voronoi python interface 2020-09-29 19:50:33 -05:00
Markus Lampert
68fecf9a90 Unified voronoi indices for python to be of type long 2020-09-29 14:58:42 -05:00
Markus Lampert
c3306582bf Added voronoi colorExterior case where one external vertex coincides with a point of an input segment. 2020-09-28 14:58:08 -05:00
Markus Lampert
81a7341632 Added vertex cache to voronoi colorExterior callback processing - cuts execution time in half. 2020-09-28 14:58:08 -05:00
Markus Lampert
67ded9cbfa Added retrieval of points and segments for voronoi diagram 2020-09-28 14:58:08 -05:00
Markus Lampert
3a50f84ba4 Added Index as attribute of all voronoi objects for easier debugging 2020-09-28 14:58:08 -05:00