Commit Graph

491 Commits

Author SHA1 Message Date
Zheng, Lei
bb3baefdb5 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
8c97f81877 add escape sequence when executing as Python string 2019-09-28 23:35:08 +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
3e2f835d8e fix mesh cutting 2019-09-24 23:26:08 +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
7adbb4322f cross-section of meshes 2019-09-21 01:23:28 +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
6a1bfc0ab2 fix -Wpedantic 2019-09-18 18:48:01 +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
Zheng, Lei
5214f5b7ce 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
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
donovaly
2b897b5eb6 DlgSettingsMeshView.ui: fix a wrong '&' char 2019-07-21 19:10:39 +02:00
donovaly
381a97b35c DlgSettingsMeshView.ui: add and improve tooltips 2019-07-21 19:10:31 +02:00
donovaly
948f756af2 add tooltips for meshing dialogs 2019-07-21 19:06:48 +02: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
128b45a6e8 Add command to show mesh segments 2019-07-04 16:56:02 +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
wmayer
cb53719821 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
Yorik van Havre
ed8be15ef4 Merged translations from crowdin 2019-06-17 20:06:59 -03:00
Yorik van Havre
624c65dea3 Updated master ts files 2019-06-17 17:28:12 -03:00
wmayer
85fddfc54a do some security checks to make sure Py::Module is valid 2019-06-03 17:57:52 +02:00
wmayer
7080301ea2 improve usability of 'Add triangle' function 2019-05-27 11:49:36 +02:00
wmayer
c05f856ac0 fix mesh cross-section to respect placement 2019-05-13 17:44:56 +02:00
wmayer
efc74ecbc8 also copy placement when copying a mesh 2019-05-13 15:51:43 +02:00
wmayer
b89555347f do some code refactoring 2019-05-11 15:14:04 +02:00
Yorik van Havre
2d47993780 Merged latest translations from crowdin 2019-05-10 19:19:37 -03:00
Yorik van Havre
9a1bb779c9 Updated master translation files 2019-05-10 19:15:33 -03:00
wmayer
4d8f85db72 add comment 2019-05-01 13:54:06 +02:00
wmayer
4841be663d improve the check for collapsing edges to avoid to introduce non-manifolds into a mesh 2019-04-24 09:49:33 +02:00
wmayer
da1481a2f3 improve mesh repair functions 2019-04-16 17:25:36 +02:00
wmayer
0521860740 rename BUILD_uSE_PCH to FREECAD_USE_PCH to be consistent with other build options 2019-04-15 13:31:31 +02:00
wmayer
4082b42f6b improve mesh repair functions 2019-04-12 21:31:46 +02:00
wmayer
3962cb856e fix import of ply meshes with Vs 2017 2019-04-09 14:52:02 +02:00
luz.paz
ad0ee86589 Misc. source comment typos 2019-03-22 10:44:14 -03:00
wmayer
ac92e1e98d extend mesh repair functions 2019-03-13 01:39:27 +01:00
wmayer
afed9ba5d5 PVS: fixes several issues 2019-03-13 01:19:00 +01:00
wmayer
767e951dda PVS: V780 non-passive (non-PDS) type cannot be copied using the memcpy function 2019-03-07 21:40:22 +01:00
Yorik van Havre
a3607ce029 Updated translations 2019-03-06 21:50:08 -03:00
wmayer
6b37fdc1a8 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