Commit Graph

21046 Commits

Author SHA1 Message Date
Filip Sykala - NTB T15p
59fc9328f4 Cache Font config configuration into static variable 2022-10-26 10:12:23 +02:00
Filip Sykala - NTB T15p
1a285dd5f1 Revert "Temporary test for performance on Ubuntu"
This reverts commit b88d2655fb.
2022-10-26 09:47:26 +02:00
Filip Sykala - NTB T15p
b88d2655fb Temporary test for performance on Ubuntu 2022-10-26 09:08:21 +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
enricoturri1966
377ff4a519 Measuring - Gizmo measure - Commented out hovered feature section from imgui dialog 2022-10-25 14:50:54 +02:00
enricoturri1966
a0c1648f36 Measuring - Gizmo measure - Allow to unselect the first feature by clicking on it (also reworked the imgui dialog to show the action taken by left click in dependence of mouse position) 2022-10-25 14:09:27 +02:00
Filip Sykala - NTB T15p
3eb09a9842 Prevent double instances of embossed text on canvas.
Fix issue 73 (use surface)
2022-10-25 13:55:09 +02:00
enricoturri1966
2f130ca6e1 Measuring - Gizmo measure - Do not close the gizmo when the user clicks outside of any volume 2022-10-25 12:12:33 +02:00
enricoturri1966
402fe908c1 Measuring - Gizmo measure - Fixed crash when selecting two parallel planes 2022-10-25 10:03:35 +02:00
enricoturri1966
5561e22ba7 Measuring - Gizmo measure - Render dimensioning auxiliary lines in light gray color 2022-10-25 09:25:05 +02:00
enricoturri1966
59f1c349fc Measuring - Gizmo measure - Show dimensioning while the user pans/rotates the 3D view 2022-10-25 08:25:31 +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
enricoturri1966
ca923c084f Measuring - Gizmo measure - Fixed measure of distance point-circle when the point is the circle's center 2022-10-24 15:13:56 +02:00
enricoturri1966
121b0f9a60 Measuring - Gizmo measure - Fixed crash when creating a new project using CTRL+N while the gizmo is active 2022-10-24 14:07:56 +02:00
enricoturri1966
7ae4472827 Merge branch 'master' of https://github.com/Prusa-Development/PrusaSlicerPrivate into et_surface 2022-10-24 12:57:39 +02:00
enricoturri1966
a331c9d018 Measuring - Gizmo measure - Fixed measurements for circles for scaled volumes 2022-10-24 12:57:29 +02:00
Filip Sykala - NTB T15p
f7f4b28f73 Change wxString to string 2022-10-21 17:26:25 +02:00
Filip Sykala - NTB T15p
47952e0c08 Add timer for measure time consumption 2022-10-21 09:53:16 +02:00
Filip Sykala - NTB T15p
e85e7a743b Merge branch 'master' into fs_emboss
# Conflicts:
#	src/slic3r/GUI/GLCanvas3D.cpp
2022-10-21 09:52:36 +02:00
Lukas Matena
d7db5bde1a Fixed z-fighting between cut contours and cut plane 2022-10-21 09:06:00 +02:00
enricoturri1966
03a256180a Tech ENABLE_RAYCAST_PICKING - Fixed active/inactive state of scene raycasters when opening/closing a gizmo which hides non selected volumes 2022-10-20 16:35:05 +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
enricoturri1966
43cc8f8cbf Fixed crash in MeshClipper::recalculate_triangles() 2022-10-20 15:46:07 +02:00
Filip Sykala - NTB T15p
ee6e947312 Clean after 9fef0cd091 2022-10-20 10:15:08 +02:00
Filip Sykala - NTB T15p
a752ccb420 Merge branch 'master' into fs_emboss
# Conflicts:
#	src/libslic3r/Technologies.hpp
#	src/slic3r/GUI/GLCanvas3D.cpp
#	src/slic3r/GUI/Selection.cpp
2022-10-19 19:35:31 +02:00
Filip Sykala - NTB T15p
9fef0cd091 Fix for whistle model. Issue 51.3
Sort patches by distance to expolygon projection depth center and add patches until expolygon is filled
2022-10-19 19:15:59 +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
Vojtech Bubnik
f57744ad12 Follow-up to 2ced762948
Integrating a C++20 like span library
    https://github.com/tcbrindle/span
2022-10-19 16:40:41 +02:00
Vojtech Bubnik
2ced762948 Integrating a C++20 like span library
https://github.com/tcbrindle/span

Replacing a homebrew const pointer wrapper const correctness helper
with the C++20 like span library.

One day when we switch to C++20 we will just use the C++20 spans instead.
2022-10-19 16:27:15 +02:00
Vojtech Bubnik
acbc60f3e3 Better const correctness 2022-10-19 16:27:15 +02:00
Vojtech Bubnik
24f671e924 Little clean-up of ConstVectorOfPtrsAdaptor to be more vector like. 2022-10-19 16:27:15 +02:00
enricoturri1966
71660a281b Tech ENABLE_WIPETOWER_OBJECTID_1000_REMOVAL set as default 2022-10-19 08:52:35 +02:00
enricoturri1966
03f2f1478a Removed tech DISABLE_MEASURE_GIZMO_FOR_SCALED_VOLUMES 2022-10-19 08:38:50 +02:00
enricoturri1966
83db044f04 Measuring - Gizmo measure - Definition and rendering of circle features in world coordinates 2022-10-19 08:17:53 +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
Filip Sykala - NTB T15p
f75777a948 shows rendered texture of style 2022-10-18 08:49:02 +02:00
YuSanka
5922bf2910 Cut small improvements:
* Disable revert icon if cut_plane position wasn't changed
* Hide CutGizmo for Simple mode.
* Fixed update of bounding box after changing scale during Z axis
2022-10-17 16:59:40 +02:00
YuSanka
13e4e85e3d Cut bug fixing:
Model: fixed looks_like_imperial_units(). This function respects to cut status now.
To be detected as looks_like_imperial_units, all parts of cat object have to be looks_like_imperial_units().

ObjectList: Fixed update after adding/deleting of the modifiers for cut object

GUI_Factories: Fixed a place of the "Invalidate cut info" item in object menu
2022-10-17 15:49:43 +02:00
YuSanka
64c57faf8f Cut Improvements: Fixed Undo/Redo for cut performance
+ ObjectList: Fixed items update after Invalidate cut information
+ CutGizmo: Fixed wrong mode selection after delete object and that add new
2022-10-17 12:15:10 +02:00
Filip Sykala - NTB T15p
bd6a3bc8a2 Merge branch 'master' into fs_emboss 2022-10-14 19:08:23 +02:00
Filip Sykala - NTB T15p
426fdfb27a Cache only last 32 font preview.
Prevent creation of huge texture for font previews
Add reservation of space for no texture(prevent change of comgo box width)
2022-10-14 19:08:18 +02:00
rtyr
53e9a8f687
Removed BETA label. 2022-10-14 13:01:34 +02:00
enricoturri1966
844d30f64e Measuring - Gizmo measure - Definition and rendering of point and edge features in world coordinates 2022-10-14 09:13:40 +02:00
enricoturri1966
a62a167c1d Measuring - Fixed crash when clicking on Delete All command while the Gizmo measure is active 2022-10-14 09:05:36 +02:00
Filip Sykala - NTB T15p
436384cf65 Fix:
\src\libslic3r\Emboss.cpp(484): warning C4305: '=': truncation from 'double' to 'float'
2022-10-14 07:51:16 +02:00
Filip Sykala - NTB T15p
b7b472f467 Merge branch 'master' into fs_emboss 2022-10-13 17:25:23 +02:00
Filip Sykala - NTB T15p
484bd9cacf Show rendered texture 2022-10-13 17:25:07 +02:00
David Kocik
a77d0dce61 Merge branch 'dk_usb' 2022-10-13 15:26:37 +02:00