Commit Graph

307 Commits

Author SHA1 Message Date
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
wmayer
b0902dbcb7 Mesh: [skip-ci] add method to get curvature info directly from mesh object 2020-01-30 17:22:31 +01:00
wmayer
19c37012dd Mesh: [skip ci] refactor MeshTexture class to avoid code duplication 2020-01-10 14:05:42 +01:00
wmayer
ad95219129 set explicit utf-8 encoding for some Python modules 2019-12-29 14:00:08 +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
howetuft
4b5ca31149 Fix -Wclass-memaccess warning
Replace C-style memset with C++ value-initialization/assignment (smarter and safer: see https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#slcon3-avoid-bounds-errors)
2019-11-18 12:32:27 +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
Zheng, Lei
71c54272a0 Fix various Py::Object leak 2019-10-08 17:53:20 +02: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
bc131c3b0d support to show color per face 2019-09-24 21:37:11 +02:00
wmayer
e16c197db9 support to load mtl files 2019-09-24 21:36:48 +02:00
wmayer
bd6da5699e extend texture mapping to meshes 2019-09-24 17:19:15 +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
wmayer
9f7075bb8f extend convertTo function to also support SbRotation/Base::Rotation 2019-09-06 21:29:51 +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
Yorik van Havre
8048f93627 Cleanup in doxygen stuff 2019-07-15 23:20:52 -03:00
wmayer
e07fe6376d Improve OBJ mesh export in case output format is not explicitly specified 2019-07-05 12:23:13 +02:00
wmayer
4c842f0e0c Store color information per segment 2019-07-04 16:55:03 +02: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
13480d6d9c do some security checks to make sure Py::Module is valid 2019-06-03 17:57:52 +02:00
wmayer
0644ed8e64 fix mesh cross-section to respect placement 2019-05-13 17:44:56 +02:00
wmayer
0e86b2a735 also copy placement when copying a mesh 2019-05-13 15:51:43 +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
cd4269e6af rename BUILD_uSE_PCH to FREECAD_USE_PCH to be consistent with other build options 2019-04-15 13:31:31 +02:00
wmayer
746997e484 improve mesh repair functions 2019-04-12 21:31:46 +02:00
wmayer
7dfdb609c7 fix import of ply meshes with Vs 2017 2019-04-09 14:52:02 +02:00
luz.paz
50c82c2b91 Misc. source comment typos 2019-03-22 10:44:14 -03:00
wmayer
4e018c506b extend mesh repair functions 2019-03-13 01:39:27 +01:00
wmayer
51aeb5867a PVS: fixes several issues 2019-03-13 01:19:00 +01:00
wmayer
67df9f3a82 PVS: V780 non-passive (non-PDS) type cannot be copied using the memcpy function 2019-03-07 21:40:22 +01:00
luz.paz
4cfda0c3a5 Misc. typos
Found via `codespell`
2019-02-08 11:01:24 -02:00
wmayer
d37d7455d0 fix double vs. float problem to solve problems in Mesh.nearestFacetOnRay 2019-01-08 19:13:50 +01:00