YuSanka
9af733d6ac
ImGuiWrapper::combo improvements.
...
+ Set label for ImGui::BeginCombo as ("##" + label).c_str() to avoid control conflicts, when several combos are placed in one imgui window.
+ Return TRUE value only when selection was changed
+ Added label_width and item_width input parameters to have possibility set a width to the label text and combo control.
+ GizmoCut: Use ImGuiWrapper::combo to render comboboxes
2023-05-23 14:23:45 +02:00
YuSanka
7553cf1007
Cut: Respect to the selected parts when perform a cut
2023-05-12 15:40:40 +02:00
Lukas Matena
e4c01a5857
Cut fixes:
...
- When cutting a scaled part, do not apply the transformation twice
- Right click does not trigger part selection when any modifier is used
- When 'flip plane' is clicked, extra render is forced
- The choice to keep object A/B is enabled even when part selection is active
- 'Cut into' radio buttons are disabled when part selection is active
- Added a missing update of connector state
- Amended tooltip
2023-05-12 15:40:40 +02:00
Lukas Matena
7b576d3312
Cut:
...
- fixed incomplete message about invalid connectors
- added detection of a connectors placed on an internal contour
- fixed a hang during part selection calculation when a contour was too small
2023-05-12 15:40:40 +02:00
Lukas Matena
0e1d43322c
Cut: Deallocate memory when the gizmo is turned off
2023-05-12 15:40:40 +02:00
Lukas Matena
ab0ade0539
Cut: contours indexing no longer breaks when the normal is inverted,
...
detection of the situation when all parts are assigned to one side
2023-05-12 15:40:40 +02:00
Lukas Matena
44aa32d6e2
Cut: correspondence between parts and contours
2023-05-12 15:40:40 +02:00
Lukas Matena
d0ee5e7ca3
Cut: ObjectClipper now allows to not render all the contours
2023-05-12 15:40:40 +02:00
Lukas Matena
b9bba5ff6b
Cut: optimization - do not check invalid connectors in each frame
2023-05-12 15:40:40 +02:00
Lukas Matena
8bea83c6c7
Cut: slightly refactored PartSelection
2023-05-12 15:40:40 +02:00
Lukas Matena
ae5fe9ce8c
Cut: separate Model for the pre-cut object
2023-05-12 15:40:40 +02:00
Lukas Matena
2005882ac5
Cut: always toggle the closest part
2023-05-12 15:40:40 +02:00
Lukas Matena
732dd0f6ac
Cut: fixed rendering of individual parts, removed some unnecessary variables
2023-05-12 15:40:40 +02:00
Lukas Matena
7ea51fc07c
Cut: when parts are selected, the result shall have only one parts with the combined meshes
2023-05-12 15:40:40 +02:00
YuSanka
1a7f46001b
Cut: Process cut in respect to the selected parts
2023-05-12 15:40:40 +02:00
Lukas Matena
e5b66f125f
Cut: experiment with selecting parts:
...
Instead of clicking on contours, the user would click on the object itself.
Right mouse button is used currently.
Many loose ends ! Really just an experiment.
2023-05-12 15:40:40 +02:00
YuSanka
1c4d43b3a4
Cut WIP: Use contours to perform a cut.
2023-05-12 15:40:39 +02:00
Filip Sykala - NTB T15p
10a85c10a5
Merge branch 'master' into fs_undoredo
2023-04-03 16:33:27 +02:00
Filip Sykala - NTB T15p
ad81d530b1
Fix of freez when undo redo on text with modifier.
2023-04-03 16:24:07 +02:00
YuSanka
102d3e0d2c
Localization:
...
* Fixed phrases
* Updated POT
* New POT is merged with community POs
2023-04-03 11:32:50 +02:00
Filip Sykala - NTB T15p
dd7a19505a
Another approach to fix undo redo:
...
Do not open gizmo on shortcut key: only create volume
2023-03-30 19:04:29 +02:00
Filip Sykala - NTB T15p
e966b1e0cd
Merge branch 'master' into fs_undoredo
2023-03-30 11:58:28 +02:00
YuSanka
989ca9d8ee
CutGizmo: Fix for Cut by Line
2023-03-27 16:00:13 +02:00
Filip Sykala - NTB T15p
e14c7f275b
Merge branch 'master' into fs_undoredo
2023-03-24 15:06:57 +01:00
enricoturri1966
98346824e8
Merge branch 'master' of https://github.com/Prusa-Development/PrusaSlicerPrivate into et_show_sla_supports
2023-03-24 08:49:35 +01:00
YuSanka
18e56c3d53
Localization: Fixes for some phrases
...
+ Added/Fixed comments where it's needed
2023-03-23 22:55:38 +01:00
YuSanka
19f2a1d9e9
Unified usage of localization macros in slic3r/libslic3r
2023-03-23 22:55:38 +01:00
YuSanka
760f74ce6a
CutGizmo: Respect to the SLA shift
2023-03-22 12:36:51 +01:00
Lukas Matena
e29970a2ed
Added 'is_serializing' flag to GLGizmoBase::data_changed function
2023-03-14 13:57:31 +01:00
YuSanka
b0a8757b12
CutGizmo: Use isApprox() instead of "==" operator for Vec3d values
2023-03-13 16:32:48 +01:00
Lukas Matena
1fbbaaae9b
Fixed several warnings
2023-03-07 14:47:25 +01:00
YuSanka
efb6b747cb
Cut Tool: Cut off the top of frustum connectors
2023-03-07 09:06:36 +01:00
YuSanka
c8daef865b
CutGizmo: Fixed label width
2023-03-03 16:56:28 +01:00
YuSanka
3985250b87
Fix for SPE-1544 - Dowels come from model during camera moving in edit connectors mode
2023-03-01 12:22:52 +01:00
YuSanka
2098ce9cfa
Follow-up 3054156f9e
2023-02-27 16:31:17 +01:00
YuSanka
3054156f9e
Cut: Add missed check if selected object inside update_bb()
2023-02-27 15:03:21 +01:00
YuSanka
ec0a3658b0
Implemented SPE-1512 - Cut tool: changing visualization of holes in dowel mode
...
Related to https://github.com/prusa3d/PrusaSlicer/issues/9771#issuecomment-1438534966
2023-02-27 12:17:22 +01:00
YuSanka
b767c76adb
Localization: Updated POT
2023-02-27 10:07:45 +01:00
YuSanka
97414fa4fd
Follow-up 923f7cf8d764d420e332d9034d1e397574a0d956 - CutGizmo : Added missed parameter for transformed_bounding_box on activate gizmo
2023-02-24 16:25:25 +01:00
YuSanka
0c78a4474c
Fix for SPE-1529 - Cut tool: Wrong position of the Plug connectors with some depth tolerance
...
+ Some code refactoring
2023-02-24 16:04:12 +01:00
YuSanka
923f7cf8d7
Cut bug fixing: SPE-1511 and SPE-1525
...
* Fixed Cut by line
* Added missed snapshots for Undo/Redo
* Fix for set new position do the cut plane
* Fixed update_clipper()
2023-02-23 18:40:43 +01:00
YuSanka
be74338e53
Follow-up a41dd8eeed50b9bfbb9f37769569f091512d8124 - Added missed updates for transformed bounding box
...
+ Fixed Arrow Up/Down action. Cut plane is moved during the its own normal instead of during the Z axes
2023-02-23 10:01:40 +01:00
YuSanka
d6c7312181
FOllow-up a41dd8eeed50b9bfbb9f37769569f091512d8124 - Fix for SPE-1521 - Use the arrows to move the cut plane out of the object
2023-02-22 16:58:49 +01:00
YuSanka
a41dd8eeed
Follow-up dc0275f70d4c5d163e1906828cfc08ee46b6d081 - Cut: Next performance fix.
...
Refactor a code to avoid redundant recalculation of an object bounding box and transformed bounding box.
2023-02-21 12:44:08 +01:00
Lukas Matena
304424b6d4
Do not calculate the AABB raycaster in cut gizmo, it does not use it
2023-02-17 12:45:22 +01:00
YuSanka
dc0275f70d
Cut bug fixing:
...
* Fix for https://dev.prusa3d.com/browse/SPE-1489 - The text is misaligned in cut dialog.
* Fix for https://dev.prusa3d.com/browse/SPE-1382 - Cut Plane does not move smoothly for multipart models.
+ Code cleanup - unused code is removed.
2023-02-17 09:48:10 +01:00
enricoturri1966
7b255aa2ab
Merge branch 'master' of https://github.com/Prusa-Development/PrusaSlicerPrivate into et_transformations
2023-02-16 12:43:45 +01:00
YuSanka
7eec10c95e
Fix for #9576 - A single cut can be made on the same model, after which the Cut tool is disabled
...
But really bug is a wrong detection of an CutObject as a DowelConnector
2023-02-15 13:56:13 +01:00
YuSanka
ffd484eb04
Cut bug fixing:
...
* Disable "Add/Edit connectors" button then cut to parts
* Fixed flip_cut_plane()
* Fixed cut by Line, when draw line over the cut plane
* Fixed apply of the transformations, when cut to parts
Cut improvements:
* Process "Ctrl"
* Change color of the cut plane when it's hovered
* Don't apply Cut information for result object(s), if cut doesn't have any connector or is cut to parts
(partially related to #9633 - Add option to Invalidate Cut Info at the time of cutting)
2023-02-15 12:02:10 +01:00
YuSanka
7755231866
Cut: Fix for a normal for color clipping plane
2023-02-15 12:02:10 +01:00