Commit Graph

147 Commits

Author SHA1 Message Date
wmayer
2fa8fb45d8 Base: refactor InventorBuilder 2022-12-13 17:48:51 +01:00
Uwe
5b7670a449 [MeshPart] enable precompiled headers
- also some sorting
2022-12-08 03:42:55 +01:00
Uwe
8d6ea90cee [MeshPart] improve PreCompiled.h handling 2022-12-07 23:35:52 +01:00
wmayer
c16e4670fd Base: refactoring of InventorBuilder 2022-11-29 15:20:43 +01:00
wmayer
c988f1d472 Base: start of refactoring of InventorBuilder 2022-11-27 16:45:16 +01:00
wmayer
8f136f60c6 Base: start of refactoring of Builder3D 2022-11-27 15:02:44 +01:00
wmayer
d955e0f108 MeshPart: [skip ci] fix build failure 2022-11-23 19:44:42 +01:00
Uwe
d62d41a53b [MeshPart] remove unused includes
- also some sorting
2022-11-23 03:35:31 +01:00
luz paz
57d0c2000a MeshPart: remove trailing whitespace 2022-11-15 12:45:52 +01:00
wmayer
7eb30ca5c7 MeshPart: modernize C++: replace 'typedef' with 'using' 2022-08-29 18:36:52 +02:00
berniev
6953310116 Mod: Single arg ctors must be explicit 2022-08-24 16:55:20 +02:00
wmayer
5014bab534 Mod: replace std::ifstream/std::ofstream with Base::ifstream/Base::ofstream 2022-08-21 12:46:53 +02:00
berniev
ddafb98813 Mod: Use override etc 2 2022-08-09 12:52:26 +02:00
wmayer
55fa3d8a77 Mod: [skip ci] improve whitespace 2022-08-08 10:46:04 +02:00
berniev
da9ebc572f Mod: redundant void 2 2022-08-08 10:27:50 +02:00
berniev
b796a0d376 Mod: use empty 2022-08-06 19:30:13 +02:00
wmayer
d152d6dd0e MeshPart: [skip ci] Fix several clazy issues:
* Missing reference in range-for with non trivial type [-Wclazy-range-loop-reference]
* Use multi-arg instead [-Wclazy-qstring-arg]
2022-07-25 10:34:51 +02:00
wmayer
aea58ace37 Mesh: replace PyObject_IsTrue with Base::asBoolean 2022-07-16 13:33:18 +02:00
andrea
93525ff7eb removed references to OCC<7 2022-06-25 14:29:24 +02:00
wmayer
469c36e3cc Mod: handle removed headers in PCH files for OCC 7.6 2022-05-21 06:28:07 +02:00
wmayer
99fd8af911 Mesh: include header with export macros 2022-03-24 20:42:15 +01:00
wmayer
97330443a2 All: modernize C++11
* replace deprecated headers
2022-03-23 22:44:18 +01:00
wmayer
1c93e5ac87 MeshPart: modernize C++11
* use nullptr
2022-03-23 19:26:14 +01:00
Uwe
19072b0538 [Mesh] remove Python.h and Xerces
seems not to be necessary anymore
2022-03-21 01:46:54 +01:00
wmayer
c3aebfeb1e MeshPart: suppress incorrect warning with clang/MSYS 2022-03-20 13:45:43 +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
2cb478fd66 MeshPart: raise runtime error in meshFromShape() if smesh was built without netgen support 2022-01-26 11:56:23 +01:00
luzpaz
4543c98267 MeshPart: fix header uniformity + remove superfluous whitespace (#5135)
* MeshPart: fix header uniformity + remove superfluous whitespace
2021-11-06 00:15:00 +01:00
wmayer
29408ee3d7 OCCT: port flatmesh to version 7.6 2021-10-12 10:03:11 +02:00
wmayer
33f3fa6865 Mesh: define the typenames FacetIndex and PointIndex to distinguish between facet and point related indexes 2021-09-14 23:01:29 +02:00
wmayer
5169a7e852 smesh: [skip ci] build FEM & MeshPart with C++14 when using external smesh because it doesn't support C++17 yet 2021-03-31 15:35:28 +02:00
wmayer
b68ca4c3be MeshPart: refactor class Mesher 2021-03-27 01:28:54 +01:00
Benjamin Nauck
f555754810 [MeshPart] Use std::shared_ptr instead of boost::shared_ptr
There's no need to use boost version when stl has support for shared_ptr
2021-03-06 19:32:03 +01:00
wmayer
13927b2465 [skip ci] Do not throw plain C string as exception 2021-02-06 15:52:21 +01:00
Benjamin Nauck
1f77dc2af8 [MeshPart] Fix copy-paste error
It doesn't make sense to check minLen and then call SetMinSize to maxLen
so this must be a copy-paste error.

Introduced in f681b86abd

Found with Coverity.
2021-01-30 11:47:06 +01:00
wmayer
135525a806 smesh: port to version 9.6 2021-01-20 19:49:56 +01:00
luz paz
cb58706e80 Fix various typos [skip ci]
Found via `codespell v2.1.dev0`  
```
codespell -q 3 -L aci,ake,aline,alle,alledges,alocation,als,ang,anid,apoints,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-12-12 08:07:47 +01:00
wmayer
c54deee146 Py2/Qt4: fix build failures and warnings 2020-11-30 19:05:37 +01:00
wmayer
f681b86abd fixes #0004426: [skip ci] Patch to add MinLength and MaxLenght to the Netgen options in the Python API (provided by thomasFreeCAD) 2020-09-12 19:37:12 +02:00
wmayer
17f16650cc flatmesh: [skip ci] implement converters from Eigen3 matrices to Python 2020-07-29 16:42:53 +02:00
wmayer
a2926df471 MeshPart: [skip ci] fix segmentation fault in flatmesh when built with boost.python 2020-07-29 13:44:45 +02:00
wmayer
618089d6d8 remove deprecated std::binary_function 2020-05-11 13:46:37 +02:00
luz.paz
d49edcc982 Revised per feedback from review 2019-12-17 15:13:48 -03:00
luz.paz
06cf1d5b70 Fix various typos [skip ci]
Fixed via 
```
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,currenty,dof,doubleclick,dum,eiter,elemente,feld,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
```
2019-12-17 15:13:48 -03:00
asapelkin
e951094af9 use emplace_back instead of push_back where justified 2019-11-21 14:48:09 +01:00
wmayer
71dae0e639 handle some more warnings: -Wkeyword-macro -Wdeprecated-declarations -Wextra-semi 2019-11-18 11:56:08 +01:00
wmayer
a85ce1976c add method to get wires of mesh boundaries 2019-11-10 11:14:04 +01:00
wmayer
a247b7e6a5 force strict ISO C++ (-Wpedantic)
for Drawing, Image, Inspection, Mesh, MeshPart, Part, Path, Points, Raytracing, ReverseEngineering, Spreadsheet, Start, Surface, Web

TODO: fix several -Woverflow in area
2019-09-18 11:32:42 +02:00