Commit Graph

324 Commits

Author SHA1 Message Date
wmayer
7a2e16ac9b Mesh: [skip ci] allow to pass target number to Python function Mesh.decimate() 2020-05-03 15:25:48 +02:00
wmayer
a759c7ecd6 Mesh: add overloaded mesh decimation to set target number of triangles 2020-05-03 15:04:50 +02:00
luz.paz
244639c2bf [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
bcda5bf2ef Mesh: [skip ci] improve cylinder fit 2020-04-29 15:31:19 +02:00
wmayer
eed2a62884 Mesh: [skip ci] fix computation of standard deviation 2020-04-27 17:41:38 +02:00
wmayer
eba07235aa Mesh: [skip ci] implement initial guess of cylinder axis 2020-04-21 19:31:48 +02:00
luz.paz
7eb270017e [skip ci] fix documentation typos
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-20 12:59:09 +02:00
wmayer
63fcfb4802 Mesh: [skip ci] add sphere and cylinder fitting algorithms 2020-04-16 14:58:30 +02:00
luz.paz
696ed42635 [skip ci] Fix typos
Found via `codespell`
2020-03-09 16:23:26 +01:00
wmayer
4671993a5d ReverseEngineering: approximation of a 2-degree polynomial surface and converting it into a Bezier surface 2020-03-07 14:21:57 +01:00
wmayer
baaac59df1 ReverseEngineering: improve mesh segmentation 2020-03-04 23:04:06 +01:00
wmayer
5b8dc807e8 ReverseEngineering: implement mesh segmentation workflow 2020-03-03 21:27:31 +01:00
wmayer
a031816de2 Mesh: change MeshSegmentAlgorithm::FindSegments to accept shared instead of raw pointers 2020-03-03 21:27:31 +01:00
wmayer
78a36fc10e Mesh: change pointer to mesh object when copying or swapping segments 2020-02-27 18:45:35 +01:00
wmayer
4eacc3f28a Mesh: [skip ci] improve writing mesh formats in ASCII format 2020-02-25 21:30:01 +01:00
wmayer
96e549479a Mesh: [skip ci] add methods to create empty KD tree or to add further points 2020-02-10 17:39:36 +01:00
wmayer
98fe02e739 Mesh: [skip ci] add method to get all facet indices from given point indices 2020-02-04 22:18:02 +01:00
wmayer
250e2f1535 Mesh: alternative method for cylinder fit using Levenberg-Marquardt algorithm 2020-02-02 16:30:05 +01:00
wmayer
e623df1eaf Mesh: [skip ci] approximation of cylinder and sphere using WildMagic lib 2020-02-01 19:01:24 +01:00
wmayer
873d42c88b Mesh: [skip ci] fix crash in mesh segmentation 2020-02-01 18:59:00 +01:00
wmayer
90addbe9c8 Mesh: [skip-ci] add method to get curvature info directly from mesh object 2020-01-30 17:22:31 +01:00
wmayer
6020ffee84 Mesh: [skip ci] refactor MeshTexture class to avoid code duplication 2020-01-10 14:05:42 +01:00
wmayer
c66622e4d6 set explicit utf-8 encoding for some Python modules 2019-12-29 14:00:08 +01:00
luz.paz
b785920541 [skip ci] Fix header uniformity for Import, Mesh, Points, Raytracing 2019-12-26 10:10:30 +01:00
luz.paz
cc97145e9d 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
3fce7da269 Mesh: [skip ci] Add static method to get list of supported input/output mesh formats 2019-12-14 15:33:33 +01:00
asapelkin
875a463923 Used single quotes for single character in string::find algorithm, more efficient 2019-11-21 18:59:43 +01:00
asapelkin
ced8100ab9 use emplace_back instead of push_back where justified 2019-11-21 14:48:09 +01:00
howetuft
5807ee2022 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
95c22f7c3b [skip ci] fix possible crash in DelaunayTriangulator 2019-11-06 16:46:08 +01:00
luz.paz
30a717beac 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
8426ebe2ba Fix various Py::Object leak 2019-10-08 17:53:20 +02:00
lorenz
b31469c38d add missing header
ref.: https://forum.freecadweb.org/viewtopic.php?p=336566#p336566
2019-09-25 16:35:15 +02:00
wmayer
89a624caf1 support to show color per face 2019-09-24 21:37:11 +02:00
wmayer
0403ba68fa support to load mtl files 2019-09-24 21:36:48 +02:00
wmayer
36399fc6c8 extend texture mapping to meshes 2019-09-24 17:19:15 +02:00
wmayer
5d91214e7e Fix regression in Approximation::AddPoints 2019-09-24 16:51:02 +02:00
wmayer
d6d25ae2f3 avoid several implicit conversions, replace several old C-casts with static_cast, do some optimizations 2019-09-20 14:56:36 +02:00
wmayer
63fa1d2c42 avoid several implicit conversions, replace several old C-casts with static_cast 2019-09-19 19:43:10 +02:00
wmayer
2f59bb50eb avoid several implicit conversions, replace several old C-casts, other minor changes 2019-09-18 23:27:54 +02:00
wmayer
54df95baa4 add function to update texture of cut mesh 2019-09-18 23:25:45 +02:00
wmayer
e48c52c480 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
7edcc70282 implement trimming of a mesh with a plane 2019-09-14 17:05:20 +02:00
wmayer
5ffbfedf64 adjust MeshAlgorithm::CheckFacets to changes of ViewProjMethod 2019-09-10 23:22:13 +02:00
wmayer
b14cf8a00d extend convertTo function to also support SbRotation/Base::Rotation 2019-09-06 21:29:51 +02:00
luz.paz
50a8e3cf22 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
a6334a4bfd Cleanup in doxygen stuff 2019-07-15 23:20:52 -03:00
wmayer
8b0ee4c4a2 Improve OBJ mesh export in case output format is not explicitly specified 2019-07-05 12:23:13 +02:00
wmayer
4b464dfa58 Store color information per segment 2019-07-04 16:55:03 +02:00
wmayer
d1d10231b5 Add methods to get intersections of mesh edges, project point on edge 2019-06-27 19:27:12 +02:00