Commit Graph

46 Commits

Author SHA1 Message Date
enricoturri1966
86a9933051 #7056 - Gizmo cut input set to use current locale 2021-10-04 11:12:29 +02:00
Vojtech Bubnik
53a5c23d0f Eradicated admesh from TriangleMesh:
TriangleMesh newly only holds indexed_triangle_set and
TriangleMeshStats. TriangleMeshStats contains an excerpt of stl_stats.
TriangleMeshStats are updated when initializing with indexed_triangle_set.

Admesh triangle mesh fixing is newly only used when loading an STL.
AMF / 3MF / OBJ file formats are already indexed triangle sets, thus
they are no more converted to admesh stl_file format, nor fixed
through admesh repair machinery. When importing AMF / 3MF / OBJ files,
volume is calculated and if negative, all faces are flipped. Also
a bounding box and number of open edges is calculated.

Implemented its_number_of_patches(), its_num_open_edges()
Optimized its_split(), its_is_splittable() using a visitor pattern.

Reworked QHull integration into TriangleMesh:
    1) Face normals were not right.
    2) Indexed triangle set is newly emitted instead of duplicating
       vertices for each face.

Fixed cut_mesh(): Orient the triangulated faces correctly.
2021-09-20 17:12:22 +02:00
enricoturri1966
4cfe8c8e1c Tech ENABLE_SINKING_CONTOURS set as default 2021-09-14 15:45:21 +02:00
Lukas Matena
a9ae2460ad Naming of the entering/leaving snapshots is now more generic,
it uses the actual name of the gizmo. Also, the keyboard shortcut
is now appended to the name, instead of being duplicated in it.
2021-09-03 13:53:07 +02:00
enricoturri1966
23ca3007e7 Fixed conflicts after merge with master 2021-08-26 12:39:28 +02:00
Lukas Matena
8bc8030985 Fixed updating of cut contour in cut gizmo by comparing ObjectIDs,
for consistency with other gizmos and hopefully more robustness
2021-08-18 11:49:30 +02:00
Lukas Matena
47b71bf1b7 Revert 740067c and e645f4a
740067c: "Fixed cut contours in gizmo cut after deleting an object"
e645f4a: "Fixed cut contours after cutting an object in gizmo cut"
2021-08-18 11:44:21 +02:00
enricoturri1966
367c288dd2 Fixed cut contours in gizmo cut after deleting an object 2021-08-18 10:23:18 +02:00
enricoturri1966
925544c71f Fixed cut contours after cutting an object in gizmo cut 2021-08-18 08:59:56 +02:00
enricoturri1966
75fce3026d Fixed calls set_uniform(emission_factor, xx) to use floats 2021-08-04 11:58:50 +02:00
enricoturri1966
875fcc7940 Tech ENABLE_SINKING_CONTOURS -> Cut gizmo: contours updated during render pass 2021-07-28 13:03:48 +02:00
enricoturri1966
151f489ed8 Tech ENABLE_SINKING_CONTOURS -> Sinking contours rendered using triangles 2021-07-28 11:21:59 +02:00
enricoturri1966
fcf8a4ca63 Tech ENABLE_SINKING_CONTOURS -> Sinking contours shown while dragging Move/Rotate/Scale gizmos and show contours for gizmo cut 2021-07-27 13:02:06 +02:00
enricoturri1966
bc4c11bef4 Follow-up of 18c8003a0f -> Fixed bounding box of selected volumes 2021-07-14 15:32:09 +02:00
enricoturri1966
bd63d26022 Fixes into Cut gizmo 2021-07-14 11:39:09 +02:00
Vojtech Bubnik
05ccafeeb5 As an example of using the enum_bitmask infrastructure for type safe
sets of optional boolean parameters, the cut function "keep upper",
"keep lower" and "flip lower" boolean parameters were converted into
a single type safe enum_bitmask. Such a coding style is certainly
wordier than the original code, but much safer and more readable
than the error prone "boolean, boolean, boolean" function call
parameter list.
2021-06-27 17:36:25 +02:00
enricoturri1966
c3d5866982 Fixed rendering of gizmos' grabbers 2021-05-28 16:44:13 +02:00
Lukas Matena
246e5f845e Grabbers and support points appearence tweaking, some refactoring 2021-05-28 16:44:13 +02:00
enricoturri1966
d594d87dcd Disable [Perform cut] button in Cut Gizmo dialog when the value of Z is not valid 2020-12-15 10:44:51 +01:00
YuSanka
d9ec994a99 Follow-up on fbf2978190: Refresh Cut gizmo immediately,
when state of "inches" checkbox is changed.
+ Fixed update of Z value, when Cut gizmo is in mm
2020-12-14 09:06:19 +01:00
YuSanka
60a513f252 Fix of #5008 - Cut tool uses mm when object is converted to inches
+ Localization: Updated MO for PT_BR
2020-12-10 08:31:24 +01:00
Lukas Matena
0cc4a5f8db Bugfix: Cut gizmo ignored SLA elevation and the cut ended up shifted
It is still possible to set the plane into the space under an object,
but at least it always cuts where indicated.
2020-05-28 16:15:49 +02:00
Lukas Matena
edcaab8b0a Includes cleanup:
GUI_App.hpp      (should not include) MainFrame.hpp
MainFrame.hpp    Plater.hpp
ModelArrange.hpp Model.hpp
Slicing.hpp      PrintConfig.hpp
FillBase.hpp     PrintConfig.hpp
GUI_App.hpp      PrintConfig.hpp
OptionsGroup.hpp GUI_App.hpp
2020-05-27 14:01:47 +02:00
enricoturri1966
17d79211b3 Generate gizmos' tooltip on demand 2020-03-16 16:37:22 +01:00
enricoturri1966
0eb46d09b9 Fixed gizmos' tooltips 2020-03-16 12:45:39 +01:00
Enrico Turri
212beb4fd4 Cut Gizmo -> added movements using arrow keys:
Up arrow = increase Z by 1mm

Down arrow = decrease Z by 1mm
2020-02-03 15:00:49 +01:00
Enrico Turri
c850d600c3 Fixed positioning of gizmos' imgui dialogs 2019-12-12 13:38:08 +01:00
Enrico Turri
2c5b1b0e54 Some rework on layout of imgui dialogs 2019-12-11 15:30:25 +01:00
Enrico Turri
263a7faa45 Follow-up of 32dc4709a4 -> A more general fix 2019-08-26 09:06:21 +02:00
bubnikv
3e150f72bf Finished picking by color with a checksum in the alpha channel
to guard against unwanted alpha blending and / or multi sampling.
2019-08-07 14:15:38 +02:00
Enrico Turri
7088dfb1a0 Refactoring of GLGizmosXX classes to cleanup their interface 2019-07-17 12:06:23 +02:00
Enrico Turri
96681151a9 Framework to serialize gizmos into undo/redo stack
Serialization into undo/redo of Cut gizmo

Refactoring of GLGizmosManager
2019-07-17 08:38:48 +02:00
Enrico Turri
2f43e228f3 Tech ENABLE_SVG_ICONS set as default 2019-07-12 10:13:35 +02:00
Vojtech Kral
0acf2dd513 Warnings cleanup in BonjourDialog, ConfigWizard, FirmwareDialog,
GLGizmoCut, ImGuiWrapper
2019-06-25 18:16:53 +02:00
bubnikv
545ad7e750 Fixed localization of 3D scene toolbar tips. 2019-05-09 17:18:03 +02:00
Enrico Turri
11c0507c8d Merge branch 'master' of https://github.com/prusa3d/Slic3r into et_canvas_gui_refactoring 2019-04-05 11:55:56 +02:00
Vojtech Kral
7665c74da8 GLGizmoCut: Scale input field 2019-04-04 12:31:13 +02:00
Enrico Turri
8f1d9b7703 Fixed conflicts after merge with master 2019-04-02 15:13:26 +02:00
Vojtech Kral
e7f991d27b imgui: More refactoring, cut gizmo window positioning 2019-04-02 10:36:24 +02:00
Enrico Turri
910605864a Added glsafe() around OpenGL calls where missing 2019-03-27 14:42:09 +01:00
Enrico Turri
0426ff1122 Merge branch 'master' of https://github.com/prusa3d/Slic3r into et_canvas_gui_refactoring 2019-03-27 08:33:48 +01:00
Enrico Turri
2f1a35b49e Gizmos' grabbers size made uniform as the mean value of the selection's bounding box sides 2019-03-26 14:53:32 +01:00
Enrico Turri
e9eb5b21ef GLCanvas3D::Gizmos as a standalone class (GLGizmosManager) 2019-03-20 13:51:25 +01:00
Enrico Turri
0bc6614cc6 GLCanvas3D::Selection as a standalone class 2019-03-19 13:30:21 +01:00
Lukas Matena
0f9dbebb33 Removed technology ENABLE_IMGUI 2019-03-18 11:45:15 +01:00
Lukas Matena
4c285950bc Separated gizmos into individual files 2019-03-18 11:45:15 +01:00