Commit Graph

74 Commits

Author SHA1 Message Date
wmayer
8a81ff174b Mesh: reduce the use of const_cast in Mesh module 2022-06-21 12:20:37 +02:00
wmayer
cad6882025 Mesh: issue #6131: Colors set prior to saving aren't retained when re-opening file
Note: A mesh feature must have a PropertyColorList property with the name FaceColors or VertexColors. The colors won't be set when loading a project but in the context-menu there is the function 'Display colors'
2022-05-17 16:43:53 +02:00
wmayer
a138706ed4 Mesh: replace several reinterpret_cast with static_cast 2022-05-17 14:33:44 +02:00
Zheng, Lei
8bec44934b Fix mixed line endings 2022-04-26 12:52:55 -05:00
Chris Hennes
3ecd16e0bd Mesh: PR6497 move return statement to new line 2022-03-29 12:36:30 -05:00
wmayer
91e4e468dd Base: move ILogger sub-classes to their own source files in order to reduce including stream classes in client code 2022-03-06 10:13:47 +01:00
wmayer
59e605e6b8 Mesh: modernize C++11
* remove redundant void-arg
* use nullptr
* replace deprecated headers
2022-01-26 18:05:02 +01:00
wmayer
c702fd07eb Mesh: [skip ci] rename MeshAlgorithm::GetMeshBorder to MeshAlgorithm::GetFacetBorder 2021-09-29 19:38:52 +02:00
wmayer
2295c4b9a3 Mesh: define the typenames FacetIndex and PointIndex to distinguish between facet and point related indexes 2021-09-14 23:01:29 +02:00
wmayer
a2ba99452f Mesh: [skip ci] in ViewProviderMesh::highlightSegments change material binding only if colors list is non-empty 2021-03-28 11:27:04 +02:00
luz paz
fa7bf5e0ff Mesh: Uniformity fixes [skip ci]
* Sort Mesh.qrc
* Capital Case .svg files
* Rename Tree_Mesh.svg to Mesh_Tree.svg
* Make appropriate changes in the source regarding said name changes
2020-12-13 17:08:22 +01:00
luz paz
7dd0601f82 Mesh: Issue #0004473: Expose openCommand() to translation
Continuing the work to expose the undo/redo functionality to translation. This commit does so for the Mesh Wb.  
Ticket: https://tracker.freecadweb.org/view.php?id=4473
2020-12-01 14:53:35 +01:00
wmayer
56c6db10e0 C++11: replace deprecated function std::bind2nd with lambda functions 2020-10-15 14:46:02 +02:00
carlopav
7758954360 Mesh: grouped view properties in ViewProviderMesh 2020-08-21 12:36:46 +02:00
wmayer
83f1c667d4 LGTM: [skip ci] fix: Resource not released in destructor 2020-07-25 14:48:59 +02:00
wmayer
d6169d6478 boost: fix for boost < 1.60 2020-06-15 19:38:39 +02:00
wmayer
730154a684 boost 1.73.0: The practice of declaring the Bind placeholders (_1, _2, ...) in the global namespace is deprecated 2020-06-12 17:51:33 +02:00
David James McCorrie
40b7ab740b Mesh: [skip-ci] Fixed wrong Coin3d off-screen renderer backround color type object SbColor -> SbColor4f 2019-12-15 15:33:03 +01:00
wmayer
7a874bdbdd Mesh: In ViewProviderMesh::getVisibleFacets replace SoFCOffscreenRenderer with SoQtOffscreenRenderer to due issues with Indirect GLX on recent Linux systems [skip ci] 2019-12-10 15:03:46 +01:00
wmayer
4f423bf555 implement algorithmic solution to determine whether triangle is visible 2019-12-09 20:06:48 +01:00
asapelkin
ced8100ab9 use emplace_back instead of push_back where justified 2019-11-21 14:48:09 +01:00
wmayer
be69317c64 [skip ci] make mesh/points cutting working for nested view providers 2019-11-09 11:58:54 +01:00
wmayer
67be01f3ac make mesh picking working for view providers underneath a Part container 2019-11-09 11:16:23 +01:00
wmayer
d36de59c32 [skip ci] tmp. disable viewer selection for several interactive commands in Mesh workbench 2019-11-07 19:23:06 +01:00
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
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
128b45a6e8 Add command to show mesh segments 2019-07-04 16:56:02 +02:00
wmayer
52b51c0f5b fix double vs. float problem to solve problems in Mesh.nearestFacetOnRay 2019-01-08 19:13:50 +01:00
wmayer
7d5870b658 workaround to correctly render annotation flags if NaviCube is shown 2018-12-20 17:52:35 +01:00
wmayer
e0a5f4b57b improve mesh healing functions 2018-12-13 17:31:21 +01:00
wmayer
3e7079d9cd fix -Wreorder 2018-09-19 17:17:43 +02:00
wmayer
7c76767bc5 improve manual mesh filling 2018-09-18 21:53:04 +02:00
wmayer
644cfa06bb replace boolean to check for inside/outside cutting with enum values 2018-09-18 18:25:51 +02:00
wmayer
2290a37a83 polish Mesh workbench 2018-09-18 14:53:37 +02:00
wmayer
363de2f7da take care of global placement when exporting from Mesh menu 2018-09-05 17:46:31 +02:00
wmayer
424c78d451 implement fast mesh rendering for Qt5 port (7x faster) 2018-07-28 11:08:03 +02:00
Unknown
e3eca59173 Misc. typo fixes
Various workbenches
2017-12-23 14:30:30 +01:00
wmayer
eb5e791835 fixes #0003169: Mesh Design WB tools does not work on translated object 2017-10-16 20:13:43 +02:00
Unknown
fa4a6b43ee Capitalize beginning of tooltips + Typos
Capitalized all remaining uncapitalized tooltips. 
+ Fixed typo in instantiate() function. Shouldn't have any repercussions on the code, AFAICT. 
+ other typos
2017-10-13 00:26:53 +02:00
wmayer
a14d8b945b use consistent display mode names 2017-03-03 14:25:16 +01:00
wmayer
1a2d40f968 add boolean parameter to MeshKernel::AddFacets to disable check for manifold edges of new faces 2017-03-02 22:33:38 +01:00
wmayer
510047d9a2 issue #0002183: Mesh View . Use Bounding-Box Not Working For Flat Lines 2017-02-09 18:30:48 +01:00
wmayer
f483411479 fix 'Flat Lines' display mode of meshes 2017-02-09 15:22:31 +01:00
wmayer
2d8e70085e rename 2d tool classes to be consistent with 3d classes 2016-11-21 14:29:51 +01:00
wmayer
f6e1cb6025 fix -Wextra in Mesh 2016-09-23 17:24:00 +02:00
wmayer
4d0d90d498 support coloring of mesh segments 2016-09-07 21:51:05 +02:00
wmayer
2c226343cb improve obj export of mesh with colors 2016-09-06 17:00:34 +02:00
wmayer
cc97241969 Coverity issues: fix Mesh, Points and Inspection module 2016-08-17 14:08:47 +02:00
wmayer
0a209f53be + add method to show parts of a mesh transparent 2016-04-29 18:15:31 +02:00