Commit Graph

199 Commits

Author SHA1 Message Date
wmayer
0f5254a4a7 Mesh: [skip ci] perform initial plane fit inside PlaneSurfaceFit::Initialize 2020-05-28 11:44:05 +02:00
wmayer
300e887480 Handle clang 10 warnings:
+ fix -Wtautological-bitwise-compare
+ fix -Wimplicit-int-float-conversion
+ fix -Wmisleading-indentation
+ fix -Wrange-loop-construct
+ suppress -Wdeprecated-copy of 3rd party libs
2020-05-25 15:34:43 +02:00
wmayer
99ab82ed0b Mesh: [skip ci] cleanup cylinder fit 2020-05-12 15:11:01 +02:00
wmayer
0621cfa9d8 remove deprecated std::unary_function 2020-05-11 13:55:54 +02:00
wmayer
618089d6d8 remove deprecated std::binary_function 2020-05-11 13:46:37 +02:00
Tobias Czauderna
c2818d9159 Mesh: IDTF export, resource name used should exactly match name of existing resource 2020-05-07 13:51:26 +02:00
wmayer
3dca72e0f0 Mesh: [skip ci] improve cylinder fit 2020-05-07 12:26:44 +02:00
wmayer
33aafd1e39 Mesh: [skip ci] improve cylinder fit 2020-05-06 23:25:18 +02:00
wmayer
2ac739e493 Mesh: add overloaded mesh decimation to set target number of triangles 2020-05-03 15:04:50 +02:00
luz.paz
d8b41f70d6 [skip-ci] Fix typos in Draft, Mesh, and src/Tools
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-04-30 11:40:38 +02:00
wmayer
9e94a4d030 Mesh: [skip ci] improve cylinder fit 2020-04-29 15:31:19 +02:00
wmayer
bc107eacc8 Mesh: [skip ci] fix computation of standard deviation 2020-04-27 17:41:38 +02:00
wmayer
be47670c6a Mesh: [skip ci] implement initial guess of cylinder axis 2020-04-21 19:31:48 +02:00
wmayer
1318a73646 Mesh: [skip ci] add sphere and cylinder fitting algorithms 2020-04-16 14:58:30 +02:00
luz.paz
8624564469 [skip ci] Fix typos
Found via `codespell`
2020-03-09 16:23:26 +01:00
wmayer
3eb8555cf3 ReverseEngineering: approximation of a 2-degree polynomial surface and converting it into a Bezier surface 2020-03-07 14:21:57 +01:00
wmayer
cda6628f14 ReverseEngineering: improve mesh segmentation 2020-03-04 23:04:06 +01:00
wmayer
8b3c31170b ReverseEngineering: implement mesh segmentation workflow 2020-03-03 21:27:31 +01:00
wmayer
f95dc3588d Mesh: change MeshSegmentAlgorithm::FindSegments to accept shared instead of raw pointers 2020-03-03 21:27:31 +01:00
wmayer
03dc6edb99 Mesh: [skip ci] improve writing mesh formats in ASCII format 2020-02-25 21:30:01 +01:00
wmayer
f6c7648870 Mesh: [skip ci] add methods to create empty KD tree or to add further points 2020-02-10 17:39:36 +01:00
wmayer
e6a29986eb Mesh: [skip ci] add method to get all facet indices from given point indices 2020-02-04 22:18:02 +01:00
wmayer
ba5e50ada9 Mesh: alternative method for cylinder fit using Levenberg-Marquardt algorithm 2020-02-02 16:30:05 +01:00
wmayer
74680b8a15 Mesh: [skip ci] approximation of cylinder and sphere using WildMagic lib 2020-02-01 19:01:24 +01:00
wmayer
eae645517e Mesh: [skip ci] fix crash in mesh segmentation 2020-02-01 18:59:00 +01:00
luz.paz
d923798946 [skip ci] Fix header uniformity for Import, Mesh, Points, Raytracing 2019-12-26 10:10:30 +01: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
wmayer
91f6a5e5ee Mesh: [skip ci] Add static method to get list of supported input/output mesh formats 2019-12-14 15:33:33 +01:00
asapelkin
8bc5b585c8 Used single quotes for single character in string::find algorithm, more efficient 2019-11-21 18:59:43 +01:00
asapelkin
e951094af9 use emplace_back instead of push_back where justified 2019-11-21 14:48:09 +01:00
wmayer
f0cdad7f70 [skip ci] fix possible crash in DelaunayTriangulator 2019-11-06 16:46:08 +01:00
luz.paz
1c981e8f14 Fix typos and misc. formatting [skip ci]
Found 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-10-21 16:02:23 -03:00
lorenz
a07cc9f485 add missing header
ref.: https://forum.freecadweb.org/viewtopic.php?p=336566#p336566
2019-09-25 16:35:15 +02:00
wmayer
e16c197db9 support to load mtl files 2019-09-24 21:36:48 +02:00
wmayer
c8be77f893 Fix regression in Approximation::AddPoints 2019-09-24 16:51:02 +02:00
wmayer
d4d9cd093e avoid several implicit conversions, replace several old C-casts with static_cast, do some optimizations 2019-09-20 14:56:36 +02:00
wmayer
e8928898a8 avoid several implicit conversions, replace several old C-casts with static_cast 2019-09-19 19:43:10 +02:00
wmayer
5a83dc2c8f avoid several implicit conversions, replace several old C-casts, other minor changes 2019-09-18 23:27:54 +02:00
wmayer
2e5e340f7b add function to update texture of cut mesh 2019-09-18 23:25:45 +02: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
wmayer
79a722830d implement trimming of a mesh with a plane 2019-09-14 17:05:20 +02:00
wmayer
068508128a adjust MeshAlgorithm::CheckFacets to changes of ViewProjMethod 2019-09-10 23:22:13 +02:00
luz.paz
eb595acfec Fix misc. source comment typos
Found via `codespell -q 3 -I ../fc-word-whitelist.txt -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`  
Fix ./src/Tools/fcinfo grammar + whitesapce  
Fix typos in ./src/Mod/Mesh/App/Core/Evaluation.cpp
2019-08-07 20:16:45 -04:00
wmayer
c5e400cd38 Add methods to get intersections of mesh edges, project point on edge 2019-06-27 19:27:12 +02:00
wmayer
85270f5cd3 Fix a couple of clang compiler warnings:
-Wunused-variable
-Winconsistent-missing-override
-Wdelete-non-virtual-dtor
-Wunused-private-field
-Wformat
2019-06-23 15:19:12 +02:00
wmayer
012698b38a do some code refactoring 2019-05-11 15:14:04 +02:00
wmayer
bf06b51e77 add comment 2019-05-01 13:54:06 +02:00
wmayer
d7bd0b6d64 improve the check for collapsing edges to avoid to introduce non-manifolds into a mesh 2019-04-24 09:49:33 +02:00
wmayer
02f192726e improve mesh repair functions 2019-04-16 17:25:36 +02:00
wmayer
746997e484 improve mesh repair functions 2019-04-12 21:31:46 +02:00