Commit Graph

263 Commits

Author SHA1 Message Date
wmayer
72a30f2bb0 [skip ci] fix tooltip 2019-11-07 17:43:44 +01:00
wmayer
7415e3602a improve detection of OpenSCAD executable to print a more appropriate error message in case of failures 2019-11-06 16:09:50 +01:00
donovaly
5e1ee09209 DlgSettingsMeshView.ui: add missing unit suffix 2019-11-01 17:47:36 -03:00
donovaly
01fb3e03d3 add toolbar icon to create mesh from shape
In daily work there are 2 main methods to work with meshes: creating one from a shape or importing an existent one.
Since the generation from a shape is often needed, add its icon to the default toolbar.
2019-10-28 10:23:26 -03: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
45fd865fc0 Gui: refactor bounding box selection style
Previously, box style selection is rendered using customized
SoBoxSelectionRenderAction, which does not support selection context,
i.e. it does not work with Link.

This patch implements context aware bound box rendering inside
SoFCSelectionRoot, SoFCSelection and SoFCPathAnnotation (for always on
top rendering). The box rendering in SoBoxSelectionRenderAction is
disabled on construction. Box style selection can be enabled for
individual object through property SelectionStyle (moved from
ViewProviderGeometryObject to ViewProviderDocumentObject), or globally
through Parameter BaseApp/Preferences/View/ShowSelectionBoundingBox.

In addition, the parameter BaseApp/Preferences/View/UseNewSelection is
used to override selection model reported from
ViewProvider::useNewSelectionModel(). The reason being that, the same
parameter is already used to toggle selection model inside
SoFCSelection. This avoids inconsistency of selection model choice
between view provider and the SoFCSelection node inside. Note that if
the parameter 'UseNewSelection' is set to false, those view providers
that choose old selection model will not work with Link.
2019-10-08 09:56:09 +02:00
wmayer
5de6763ed5 add escape sequence when executing as Python string 2019-09-28 23:35:08 +02:00
wmayer
db8ec7c10e fix mesh cutting 2019-09-24 23:26:08 +02:00
wmayer
bc131c3b0d support to show color per face 2019-09-24 21:37:11 +02:00
wmayer
7407fe9ff3 cross-section of meshes 2019-09-21 01:23:28 +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
a243b95209 fix -Wpedantic 2019-09-18 18:48:01 +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
Zheng, Lei
c8891be856 Gui: add coinRemoveAllChildren to work around Coin3D bug
See bug description:
https://bitbucket.org/Coin3D/coin/pull-requests/119/fix-sochildlist-auditing/diff

Because of path based rendering (SoFCPathAnnotation) in mouse over
highlight, this bug causes crash more frequently here comparing to
upstream.

All C++ calling of SoGroup::removeAllChildren() is replaced by
Gui::coinRemoveAllChildren(), and python code is fixed by monkey
patching SoGroup.removeAllChildren() in FreeCADGuiInit.py.
2019-08-17 14:52:11 +02:00
donovaly
b477294903 DlgSettingsMeshView.ui: fix a wrong '&' char 2019-07-21 19:10:39 +02:00
donovaly
669f4bd5ad DlgSettingsMeshView.ui: add and improve tooltips 2019-07-21 19:10:31 +02:00
donovaly
f54df863d2 add tooltips for meshing dialogs 2019-07-21 19:06:48 +02:00
wmayer
830ddc75ca Add command to show mesh segments 2019-07-04 16:56:02 +02:00
Yorik van Havre
236f890864 Merged translations from crowdin 2019-06-17 20:06:59 -03:00
Yorik van Havre
d890b4ec17 Updated master ts files 2019-06-17 17:28:12 -03:00
wmayer
540ad16eb5 improve usability of 'Add triangle' function 2019-05-27 11:49:36 +02:00
Yorik van Havre
ed386410bc Merged latest translations from crowdin 2019-05-10 19:19:37 -03:00
Yorik van Havre
c65bf365a1 Updated master translation files 2019-05-10 19:15:33 -03:00
Yorik van Havre
dcae6d027e Updated translations 2019-03-06 21:50:08 -03:00
wmayer
28b195d6e2 PVS issues:
consistently define copy constructor and assignment operator
remove superfluous casts
initialize member variables in constructor
avoid double assignment
2019-03-04 11:53:49 +01:00
Yorik van Havre
a70a82e19f Revert "Merged crowdin translations" for investigation due to some problems found in the translation files...
This reverts commit 9032c4c587.
2019-03-02 19:17:44 -03:00
Yorik van Havre
9032c4c587 Merged crowdin translations 2019-02-28 21:53:37 -03:00
wmayer
2bb5797568 PVS: V595 The pointer was utilized before it was verified against nullptr 2019-02-17 20:55:52 +01:00
wmayer
3845350c0a PVS: V773 A memory leak is possible 2019-02-17 18:40:06 +01:00
wmayer
6704887afa fixes 0003838: missing tooltip in mesh preferences dialog 2019-02-16 15:07:52 +01:00
Yorik van Havre
f14633d182 Added untranslated 'master' .ts files where missing 2019-02-08 18:50:13 -02:00
Yorik van Havre
ac18ec0d79 Updated translations 2019-02-01 13:54:10 -02:00
luz.paz
d5ea453f9d Crowdin: Several more various fixes 2019-01-30 11:08:03 -02:00
wmayer
d37d7455d0 fix double vs. float problem to solve problems in Mesh.nearestFacetOnRay 2019-01-08 19:13:50 +01:00
Yorik van Havre
2ea84272fd Updated translations from crowdin 2018-12-23 13:54:30 -02:00
wmayer
4c67a5c3c6 workaround to correctly render annotation flags if NaviCube is shown 2018-12-20 17:52:35 +01:00
wmayer
f474900c07 change default value of renderTriangleLimit to UINT_MAX 2018-12-20 10:49:37 +01:00
wmayer
9683abfc36 improve mesh healing functions 2018-12-13 17:31:21 +01:00
wmayer
d91e38962c mesh segmentation algorithm for surfaces 2018-12-10 13:19:27 +01:00
wmayer
0caa169eb0 mesh segmentation algorithm for surfaces 2018-12-10 00:23:31 +01:00
wmayer
a92014a36d rework mesh segmentation dialog 2018-12-07 13:13:08 +01:00
wmayer
a7094210f8 Fix scan coverity issues:
CID 184294: Uncaught exception
CID 183597: Unchecked return value
CID 175809: Dereference before null check
CID 175810: Logically dead code
CID 133000: Uninitialized scalar variable
CID 133001: Uninitialized scalar variable
CID 183591: Explicit null dereferenced
2018-11-13 16:47:58 +01:00
wmayer
f898eafd64 move from deprecated boost.signals to boost.signals2 library 2018-10-30 19:09:03 +01:00
wmayer
33663d134d make the methods highlightSelection/unhighlightSelection virtual 2018-10-26 00:40:20 +02:00
wmayer
8ab6ffa692 fix -Wreorder 2018-09-19 17:17:43 +02:00
wmayer
17d36cecc9 improve manual mesh filling 2018-09-18 21:53:04 +02:00
wmayer
ff6ed27ba9 replace boolean to check for inside/outside cutting with enum values 2018-09-18 18:25:51 +02:00
wmayer
4c8e70b9a3 polish Mesh workbench 2018-09-18 14:53:37 +02:00
wmayer
312310de60 take care of global placement when exporting from Mesh menu 2018-09-05 17:46:31 +02:00
wmayer
299f68cda6 add comment about using readLockNormalCache 2018-09-03 13:16:16 +02:00