206 Commits

Author SHA1 Message Date
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
enricoturri1966
224ee922c5 'gouraud' shader modified to allow to draw an object with two different colors in Cut Gizmo 2023-02-15 12:02:10 +01:00
YuSanka
b40473be51 CutGizmo: Improvements to identify Upper/Lower parts_count
+ Rework CutDialog
+ Added "Cut to" section (Idea from #9564[Cut: Keep results as parts of current idea] was used, but there is other implementation)
+ Fix for #9657 - Inconvenient gizma, blocks the view of the cut of small parts
+ Add functionality "Flip cut plane" = Fix for #9632 - Adding connectors to either split cut part
+ ImGuiWrapper: added tooltip for button
2023-02-15 12:02:10 +01:00
enricoturri1966
9510c4b4fa Merge branch 'master' of https://github.com/Prusa-Development/PrusaSlicerPrivate into et_transformations 2023-02-15 08:57:35 +01:00
YuSanka
b71e0bfd34 Follow-up 8913fdf6ab
* Deleted/Temporary commented redundant call of app_config->save()
 * Use app_config->get_bool() function on all places
2023-02-13 17:23:49 +01:00
YuSanka
a913bd493f Fix for #9697 - Cut tool tolerance by measurement 2023-02-13 14:08:21 +01:00
enricoturri1966
1a505f1af4 Merge branch 'master' of https://github.com/Prusa-Development/PrusaSlicerPrivate into et_transformations 2023-02-10 12:49:31 +01:00
YuSanka
b52ce29d12 Fix to #9629 - Cut tool will not cut unless there is an object
Allow to perform a cut even if CutPlane doesn't cross the solid parts of object.
But show the warning line
2023-02-09 15:22:01 +01:00
enricoturri1966
04a144f00e Merge branch 'master' of https://github.com/Prusa-Development/PrusaSlicerPrivate into et_transformations 2023-02-08 14:09:24 +01:00
YuSanka
20e5083350 Cut: Fixed a scale for grabbers and thickness of the cut plane 2023-02-08 13:06:00 +01:00
enricoturri1966
bf48848b00 Small optimization - Removed unneeded normalization from gizmos Move, Rotate and Scale 2023-02-08 10:21:33 +01:00
YuSanka
d09f31db9c Fix for #9500 - Cut tool - minimal connector size
Minimal connector size is decreased to 1mm
2023-02-03 13:57:37 +01:00
YuSanka
e4ef82d1c1 CutGizmo: Add info icons to the connector types 2023-02-03 12:56:14 +01:00
YuSanka
e4ccfda0b0 Cut: Fix for apply of tolerance to the connectors
Bug was caused by refactoring in 0201a5055a
2023-02-02 12:23:54 +01:00
YuSanka
b173927ad1 CutGizmo: Fixed clipper behavior after slicing in SLA mode 2023-01-31 15:54:07 +01:00
tamasmeszaros
fc9b7ed59c Merge branch 'master' into et_tm_sla_volumes_6-SPE-1285 2023-01-13 11:02:06 +01:00
YuSanka
bfb60875fa CutGizmo: Allow to cut by line when only one cut part is selected.
+ Updated splashscreen
2023-01-04 17:40:22 +01:00
YuSanka
0addb3b9e7 Cut: Hide Debug window, leave rectangle mode for the cut plane
+ Fixed CameraUtils::ray_from_persp_screen_pos() to return a correct value of the point
2022-12-19 13:11:38 +01:00
YuSanka
4da322d527 CutGizmo: Some beautification/reorganization 2022-12-16 10:57:36 +01:00
YuSanka
7832d600ff CutGizmo: Allow to add connectors for SLA 2022-12-15 13:22:22 +01:00
YuSanka
24366c6294 Cut: Fixed connector rendering in "cut plane" mode 2022-12-13 16:36:10 +01:00
YuSanka
0d512a4256 Cut: Extended detection if connector is outside of cut contour
It respects to the whole connector contour now
2022-12-09 18:26:59 +01:00
YuSanka
7edc2acfc0 Cut: Connectors mode: Implemented forward/downward view to the cut plane
+ updated cut ikons
2022-12-09 11:15:48 +01:00
Lukas Matena
595ef873ad Change the way how cut gizmo detects hits on cut plane:
it did not work well on meshes with overlapping surfaces
2022-12-07 16:15:25 +01:00
YuSanka
e07843e6fb Cut: Fixed visualization of the selected connectors which are conflict
+ Back port a Lukas's code for enable/disable current contour
2022-12-01 16:44:36 +01:00
enricoturri1966
569db9689f Removal of calls to Geometry::assemble_transform() 2022-11-24 14:58:20 +01:00
YuSanka
69d1ad2cad CutGizmo: Bug Fixing :
* Crash - when click to Whipe-tower
* Crash - when the bed is empty and the top bar is pressed +. Note: There was a bug in detection if we can increase/recrease instances
* After cutting the object in SLA does not work clipping of view
 Improvements :
* Connectors mode of CutGizmo : Add "Cancel" button to Discard all conectors and switch to the CutPlane mode
2022-11-02 13:35:05 +01:00
YuSanka
9b0a69e50e CutGizmo: Fixed grabbers hovering after merge with master
+ Added possibility to use circle cut plane
+ Deleted unused code
2022-10-26 15:26:35 +02:00
YuSanka
bba6d8b94d Merge remote-tracking branch 'PRIVATE/master' into ys_cut 2022-10-25 16:16:36 +02:00
YuSanka
18edc71254 Cut WIP: Code refactoring for ae21667786
+ ObjectList: Fixed list of the types for "Change type" dialog, when object is cut.
+ CutGizmo:
  * Warning line is extended for information about invalid connectors
  * Fixed a crash on undo/Redo, when cutGizmo is active
2022-10-25 15:54:52 +02:00
YuSanka
ae21667786 Cut WIP: First implementation for detection of the invalid connectors position
Implemented cases:
* overlap of some connectors
* check if some connector position is outside of clipper
2022-10-24 16:57:02 +02:00
YuSanka
98d7fe335b Cut WIP: experiments with detection of the position for CutPlaneLine
Note: It still doesn't work properly

+ CurGizmo: Fixed a check of new center position in function set_center_pos().
2022-10-24 16:32:10 +02:00
YuSanka
7bb0b7eefc Cut bug fixing: Fixed a place of connectors after several cutting
+ Added info about camera direction to a DEBUG window
+ Code factoring (deleted unused code)
+ Fixed build warnings
2022-10-20 16:34:21 +02:00
YuSanka
2880704de9 Cut improvements/ bug fixing:
* Wrong position of grabber is fixed
* OSX specific: ObjectList: Fixed update of the info items after cut
* Show info line, when Cut plane is invisible

+ Fixed non-Win build: added missed include
2022-10-19 17:38:04 +02:00
YuSanka
3a21f156c0 Cut Improvements/Bug Fixing
* Context menu: Suppress "Simplify model" for cut object
* CutGizmo:
  * Disable gizmo for dowel object
  * Invalidate cut plane position after update of Bounding box
  * Suppress Frustum style for connectors with Dowel type
  * Rectangle selection: Fixed processing on LeftUp
* Selection on Canvas: Suppress to move NEGATIVE_VOLUME if it's a connector
* Model:cut: Fixed a bug in add_cut_volume(). Cut info wasn't copied to the new volume
2022-10-18 14:13:50 +02:00