Commit Graph

327 Commits

Author SHA1 Message Date
Uwe
c35579227b [Path] remove superfluous nullptr checks 2022-07-18 02:52:48 +02:00
sliptonic
6d81f31f11 Additional changes to support G73 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
sliptonic
f4f37ecdd1 G38 fixes for probe visualization per mlampert 2022-07-12 12:22:36 -05:00
andrea
1021098106 remove unused boost files 2022-07-01 03:18:36 +02:00
andrea
93525ff7eb removed references to OCC<7 2022-06-25 14:29:24 +02:00
wmayer
c955372ecf cppcoreguidelines-pro-type-union-access
According to https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md using union for type-punning is undefined behaviour.
 Replace it with std::memcpy
2022-06-24 14:29:50 +02:00
mosfet80
620c273c4e Boost version <=1.60 is never used in freecad 0.20 (#7038)
* Boost version 1.60 is never used in freecad 0.20
2022-06-24 02:20:26 +02:00
marioalexis
d298a7101c Path: Use PyObject_IsTrue in combination with conditional ternary operator 2022-06-22 19:50:03 -04:00
wmayer
796d722072 Path: fix warning: extra ';' inside a struct/class [-Wextra-semi] 2022-06-20 11:34:31 +02:00
Uwe
f4891488d3 [Path] remove a unnecessary Boolean comparison 2022-06-19 18:32:54 +02:00
Uwe
4a052dc34a [Path] cleanup formatting of Area.cpp/.h
- MSVC always kind of "stumbled" over this file, therefore it was on my ToDo lost to let run MSVC's syntax unification over this file

- still many MSVC warnings, but now some less
2022-06-19 17:49:08 +02:00
Uwe
d13ecc1efa [Path] fix compilation with precompiled headers
- also sort includes to keep overview
2022-06-11 00:56:00 +02:00
younghang
a21a5a2032 Fix whitespace 2022-05-18 09:36:16 +08:00
younghang
07d7ced8ec Path: Fix PointProjectionFailed in rebaseWire() 2022-05-16 10:08:35 +08:00
younghang
7630ee024b fix PointProjectionFailed 2022-05-16 00:04:44 +08:00
Chris Hennes
5f31fb74f6 Path: PR6497 move return statement to new line 2022-03-29 12:37:49 -05:00
wmayer
4f854bf998 Path: suppress warnings caused by boost 2022-03-24 21:09:28 +01:00
wmayer
97330443a2 All: modernize C++11
* replace deprecated headers
2022-03-23 22:44:18 +01:00
wmayer
7b591da9f5 Path: modernize C++11
* use nullptr
2022-03-23 19:26:15 +01:00
Uwe
f23fa31f42 [Path] remove Python.h and Xerces
they are not needed anymore
2022-03-21 13:18:42 +01:00
wmayer
9160f06e1c Base: rename BaseExceptionFreeCADError to PyExc_FC_GeneralError 2022-03-17 14:45:48 +01:00
wmayer
d69defaa3c Py: replace BaseExceptionFreeCADError with more suitable exception types 2022-03-17 13:54:23 +01:00
wmayer
0054cbddaa Fix coverity issue:
* CID 332682: Resource leak
* CID 350607: Resource leak
* CID 332677: Resource leak
2022-03-14 11:35:04 +01:00
wmayer
8d3c66cf18 Core/Mod: modernize C++11
* use nullptr
2022-03-09 21:55:31 +01:00
Uwe
b5b86863e7 [Path] Voronoi: add include needed to compile with the CI 2022-02-28 04:01:53 +01:00
Uwe
e2f3fa2587 [Path] Voronoi: add include needed to compile with the CI 2022-02-28 03:56:45 +01:00
Uwe
3d944c47ca [Path] Voronoi: remove unused includes 2022-02-28 03:46:15 +01:00
luz paz
4f886b2b8c Fix various typos and refinements 2022-01-06 20:22:34 +01:00
wmayer
833868bd13 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
74639da997 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
e211b89cf8 port to MSYS2/clang 2021-09-19 19:49:44 +02:00
wmayer
ce285ea265 Mod: fix warning [-Wmacro-redefined] 2021-09-14 22:57:17 +02:00
luz paz
56ce278abf 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
346fe8a93a Path: [skip ci] fix memory leaks 2021-04-27 14:32:35 +02:00
wmayer
1e5c5f4e7f Path: [skip ci] fix memory leaks 2021-04-27 13:02:57 +02:00
wmayer
b84dcf9b27 Path: remove some more deprecated Py2 code 2021-04-26 11:11:35 +02:00
Markus Lampert
cff02d85de Fixed angle detection 2021-02-15 23:23:16 -08:00
J-Dunn
8cb513ba45 add comment about clearing Py::Dict when changing C++ data 2021-01-25 11:01:37 +01:00
J-Dunn
08297e5239 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
bb1e4ed7c4 Path: [skip ci] fix build failure when using boost 1.75 2021-01-05 15:12:46 +01:00
Mateusz Skowroński
ea6e8e9906 Fix build warnings from deprecated Boost headers (1.74) 2021-01-02 10:43:56 +01:00
wmayer
d89cd953a2 Path: [skip ci] fix Python 3.9 deprecation warning 2020-12-23 17:41:30 +01:00
sliptonic
e697a3de1e Merge branch 'master' into feature/suppress-warnings-preferences 2020-12-18 11:12:48 -06:00
wmayer
fc9be21345 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
63dbf329aa Added warning suppression for all missing speeds and changed default to true 2020-12-15 20:05:42 -08:00
sliptonic
b6a83cbebf 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
9b39c6784e 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
5bafaac609 Merge branch 'master' into Path 2020-12-13 19:35:43 +01:00
Stefan Endres
4ad41c96d0 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