Commit Graph

13605 Commits

Author SHA1 Message Date
Vojtech Bubnik
01dec1bd5c Fixed crash in Organic supports.
Fixes #10551
2023-05-16 11:06:36 +02:00
enricoturri1966
3377043154 SPE-1698 - Follow-up of 15bd82edc3 - Fixed detection of out of printbed 2023-05-15 14:05:23 +02:00
enricoturri1966
15bd82edc3 SPE-1654 - Out of printbed detection applied only to selected volumes when the selection is not empty 2023-05-15 13:45:25 +02:00
YuSanka
7f649c5509 Some code refactoring 2023-05-15 13:05:03 +02:00
Lukas Matena
9f91272009 Merge remote-tracking branch 'public/master' 2023-05-15 12:46:24 +02:00
enricoturri1966
00e35807ab Follow-up of 568dc2a0e8 - Fixed update of sequential printing clearance contours after deleting a part of an object 2023-05-15 12:45:54 +02:00
enricoturri1966
568dc2a0e8 Fixed update of sequential printing clearance contours after deleting an object 2023-05-15 12:35:25 +02:00
Pavel Mikus
60732fa664 Fix https://github.com/prusa3d/PrusaSlicer/issues/10563
Crashing of new ensuring fill due to zero vertical lines generated
2023-05-15 10:48:54 +02:00
David Kocik
a06a619228 Fix of boost format error.
issue #10556
2023-05-15 10:43:46 +02:00
enricoturri1966
beabf5d652 Do not calculate sequential print clearance contours for objects out of printbed 2023-05-15 09:08:30 +02:00
enricoturri1966
fa2ff496c6 Fixed build on MAC OS 2023-05-15 09:06:59 +02:00
enricoturri1966
0b20019ff2 Fixed update of sequential print clearance contours when the final result, of manipulating objects with the gizmos, ends up in an identity matrix 2023-05-15 09:05:46 +02:00
enricoturri1966
2dba40789f Some refactoring related to sequential print clearance contours 2023-05-15 08:55:22 +02:00
enricoturri1966
5cc1359c05 Show and update sequential print clearance contours while manipulating the scene using Move/Rotate/Scale gizmos 2023-05-15 08:48:06 +02:00
enricoturri1966
9da788eae1 Method GLCanvas3D::update_sequential_clearance() modified to use frontend data to calculate sequential print clearance contours 2023-05-15 08:46:41 +02:00
enricoturri1966
6974962dd0 Avoid updating and sending to gpu sequential print clearance contours at every frame. Cache them instead and update only their transforms.
Fixed conflicts after cherry-picking e99ee946af
2023-05-15 08:39:46 +02:00
enricoturri1966
77da892927 Added cache for sequential printing clearance contours into class Print to avoid calculate them twice when needed.
-Fixed conflicts after cherry-picking 056d703573
2023-05-15 08:21:57 +02:00
Lukas Matena
115ac0aace Revert "Fix for SPE-1657 : [LINUX - GTK3] Crash when change position of part in sidebar"
This reverts commit a4cf34a49f.
2023-05-12 17:10:00 +02:00
Vojtech Bubnik
1de963d7d7 Organic supports: When propagating "verylost" branches down,
stop when the support area is smaller then half of the branch area.
2023-05-12 16:17:31 +02:00
Lukas Matena
f1f568f3fd Start using -beta config directory instead of -alpha 2023-05-12 15:40:57 +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
2aa55ef950 Cut: fixed an issue when the view rotates to the other side of the plane 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
tamasmeszaros
99cf8a0fe1 Merge branch 'tm_fill_bed_broken_SPE-1694' 2023-05-12 15:36:34 +02:00
Vojtech Bubnik
96551233e0 Auto support painting: Don't paint on upwards pointing surfaces. 2023-05-12 15:16:15 +02:00
tamasmeszaros
4e4e5b0871 Fix broken fill bed feature 2023-05-12 14:20:01 +02:00
enricoturri1966
35195dc03e Revert "Merge remote-tracking branch 'origin/et_outofbed_optimization'"
This reverts commit a430aa41ba, reversing
changes made to a42d857136.
2023-05-12 14:09:16 +02:00
Pavel
6b41e5d9b1 Fix debug build, there was obsolete assert 2023-05-12 13:44:58 +02:00
enricoturri1966
53b812a646 Merge branch 'master' of https://github.com/Prusa-Development/PrusaSlicerPrivate into et_outofbed_optimization 2023-05-12 12:00:58 +02:00
Pavel
a42d857136 fix comment to reflect the current state 2023-05-12 11:29:50 +02:00
PavelMikus
0358eef42f make overlap fix unconditional 2023-05-12 11:29:50 +02:00
PavelMikus
26bb408ee2 fix ordering issues, fix overlap 2023-05-12 11:29:50 +02:00
PavelMikus
c17803812a fix gap fill connections breaking the extrusion order for sorting 2023-05-12 11:29:50 +02:00
PavelMikus
274d8ee3e7 Fixed and integrated connected fill version 2023-05-12 11:29:50 +02:00
PavelMikus
0a7c48f5fd Little refactoring, make the fill modifiable 2023-05-12 11:29:50 +02:00
PavelMikus
801a41a352 Fixed some bugs in sorting and connecting.
Experimenting with ordering by max coordinate - this causes concetric arachne parts to be filled from inside
2023-05-12 11:29:50 +02:00
PavelMikus
a695b66d01 Stable and working version, fixed several issues in ordering and connecting 2023-05-12 11:29:50 +02:00
PavelMikus
17c9182f41 Reduced and reworked the connections of generated paths 2023-05-12 11:29:50 +02:00
Pavel Mikus
aa85d050fe Fix path sorting 2023-05-12 11:29:50 +02:00
PavelMikus
ebbbb1505c Move and enhance path sorting, fix bug caused by new hash set 2023-05-12 11:29:50 +02:00
PavelMikus
663bbbaa5e fix angle, filter tiny drops, fix thin regions filtering 2023-05-12 11:29:50 +02:00
PavelMikus
54eb19d589 Connect thick polylines where applicable 2023-05-12 11:29:50 +02:00
PavelMikus
2c12a7f164 Increased line shortening near steep walls. 2023-05-12 11:29:50 +02:00
PavelMikus
1279b4d22a fix some errors 2023-05-12 11:29:50 +02:00
PavelMikus
8be661f0f6 shortening of lines near steep differences, but has some issues 2023-05-12 11:29:50 +02:00
PavelMikus
3346b422a7 Fixed various bugs in reconstruction of polygon from vertical lines 2023-05-12 11:29:50 +02:00
PavelMikus
4409743ea4 Fixed wrong usage of thickPolyline, added description of what it should actually contain 2023-05-12 11:29:50 +02:00
PavelMikus
9d3a7f9f2a Implement connecting of lines, but does not work yet 2023-05-12 11:29:50 +02:00
PavelMikus
93fb77c711 initial implementation 2023-05-12 11:29:50 +02:00
Pavel
72f8590332 Add missing include 2023-05-12 10:32:14 +02:00
PavelMikus
6e9e4ee8c3 SPE-1626 - improve anchoring over lightning infill by expanding the bridges surfaces 2023-05-12 10:32:14 +02:00
PavelMikus
22f7fe3e21 Fix bugs, finish the feature 2023-05-12 10:32:14 +02:00
PavelMikus
fbe102a7fe initial impl, Created surfaces have wrong parameters 2023-05-12 10:32:14 +02:00
enricoturri1966
ffbddd82ee SPE-1696 - Fixed crash when loading project while the camera is below the printbed 2023-05-12 10:03:28 +02:00
tamasmeszaros
d431204c51 Merge branch 'tm_fix_sla_arch_profile_import_SPE-1688' 2023-05-12 08:34:01 +02:00
YuSanka
683933176b GUI_App::run_wizard : Deallocate a memory after close ConfigWizard.
+ Added wait cursor when ConfigWizard is created to inform user about activity
2023-05-11 17:18:11 +02:00
Vojtech Bubnik
52fc7a8439 Organic supports: bring "lost" branches down to an object or print bed. 2023-05-11 14:26:24 +02:00
enricoturri1966
c6a203cb14 Do not calculate sequential print clearance contours for objects out of printbed 2023-05-11 12:34:02 +02:00
Oleksandra Yushchenko
9e4859ebbf
Modification of extruders filaments for support XL multitool (#36)
* Fix for SPE-1659 : Wrong filaments update, when templates are allowed/suppressed

* Per Extruder Filaments (related to SPE 1599)

* Implemented compatibility for each extruder separately
* Update of the filaments compatibility is extracted to separate function update_filaments_compatible()
* Fixed synchronization of config.ini with the current selections, when preset is changed from sidebar.

* Filament Settings Tab improvements:
* Added extruder combobox to select active extruder
* PresetCombobox is updated in respect to compatibility for active extruder
* For MM printer: Cog icon near the filament will switch to Filament Settings for selected filament

* Bug fixing for https://dev.prusa3d.com/browse/SPE-1599

* Next round of bugfixing for https://dev.prusa3d.com/browse/SPE-1599

* Fixed crashes from https://dev.prusa3d.com/browse/SPE-1599
+ code refactoring for Tab:save_preset()
2023-05-11 12:17:59 +02:00
enricoturri1966
989cbeceb1 Merge branch 'master' of https://github.com/Prusa-Development/PrusaSlicerPrivate 2023-05-11 12:08:35 +02:00
YuSanka
8e3a988bff Fix for SPE-1687 : SLA - Loop/crash during editing SLA support points
ManipulationPanel: Disable editable controls, when some gizmo is in editing mode
2023-05-11 11:57:35 +02:00
enricoturri1966
462bdd134a Merge branch 'master' of https://github.com/Prusa-Development/PrusaSlicerPrivate into et_sla_switch_view 2023-05-11 11:51:50 +02:00
enricoturri1966
653d7bc678 Merge branch 'master' of https://github.com/Prusa-Development/PrusaSlicerPrivate into et_outofbed_optimization 2023-05-11 11:40:50 +02:00
YuSanka
a4cf34a49f Fix for SPE-1657 : [LINUX - GTK3] Crash when change position of part in sidebar 2023-05-11 11:13:55 +02:00
tamasmeszaros
8f680fd496 Fix no action on sla archive import with "profile only" option 2023-05-10 17:05:05 +02:00
tamasmeszaros
d4ad9deb94 Archive format registration refactored
Fix tests
2023-05-10 14:08:11 +02:00
David Kocik
f346b42886 Commented Part of config update algorythm that searches in snapshots. 2023-05-10 11:17:19 +02:00
enricoturri1966
663465299b Small refactoring 2023-05-10 11:15:39 +02:00
David Kocik
2e3b5c2bbc Fix of backward compability issue
Added recommended version checks to ConfigWizard and PresetUpdater
2023-05-10 11:06:30 +02:00
enricoturri1966
662c3da65b Fixed warnings 2023-05-10 11:01:50 +02:00
enricoturri1966
5984111388 SPE-1606 - Placement of switch view type icon in the 3D scene by the current selected instance bounding box 2023-05-10 10:37:05 +02:00
enricoturri1966
a4605a5e9e SPE-1606 - Do no show the switch view type icon in the 3D scene if the object does not contain negative volumes 2023-05-10 10:20:31 +02:00
enricoturri1966
35f4993ec2 SPE-1606 - Fixed geometry not rendered in the 3D scene after switching from SLA to FFF printer 2023-05-10 10:13:20 +02:00
Vojtech Bubnik
3848a8eda2 Fixed crash after 'vb_organic_interfaces' with zero top interfaces. 2023-05-10 09:02:40 +02:00
enricoturri1966
b13a51f400 Merge branch 'master' of https://github.com/Prusa-Development/PrusaSlicerPrivate into et_sla_switch_view 2023-05-10 08:15:35 +02:00
Vojtech Bubnik
c9f449bcb2 PlaceholderParser: fixed reporting of x value outside
of the interpolated table.
2023-05-09 11:14:36 +02:00
Vojtech Bubnik
84db6356b3 Organic Supports: support_tree_branch_diameter_double_wall
to control when the 2nd wall kicks in.
2023-05-09 10:46:56 +02:00
Vojtech Bubnik
daa9bf7cd9 Merge branch 'vb_organic_interfaces' 2023-05-09 09:47:11 +02:00
Vojtech Bubnik
9d495f2413 Organic supports: Refactoring for adding interfaces to tree tips. 2023-05-09 09:46:27 +02:00
Vojtech Bubnik
c838fc92fc Follow-up to 1e7a3216ca
WIP Organic supports intefaces: bugfixes
2023-05-08 10:25:28 +02:00
Vojtech Bubnik
1e7a3216ca WIP Organic supports intefaces:
Further refactor of FDM support code - extracted interface routine to common.
Implemented support for soluble interfaces & half soluble / half non-soluble
interfaces.
2023-05-08 09:19:31 +02:00
PavelMikus
ce4cf95067 Fix missing includes 2023-05-05 16:32:03 +02:00
Vojtech Bubnik
89f0895dd6 WIP: Organic supports - bottom interfaces 2023-05-05 14:23:09 +02:00
Vojtech Bubnik
ad203baf77 Moved FFF support code to libslic3r/Support directory 2023-05-05 14:05:22 +02:00
PavelMikus
2873042148 SPE-1684: Fix issue where the automatic painting did not trigger paint-on-supports notification in the right panel 2023-05-05 13:53:52 +02:00
Vojtech Bubnik
a236351fd3 Supports refactoring: Split FFF supports into multiple files,
enclosed into namespaces.
2023-05-05 12:59:01 +02:00
Vojtech Bubnik
cc938e7549 WIP SupportGeneratorLayerStorage refactoring. 2023-05-05 10:21:24 +02:00
PavelMikus
1bbe0c5be3 fix missing include for linux builds 2023-05-04 17:39:56 +02:00
Vojtech Bubnik
00ea0847b8 Fix of merging bridging regions:
Fixed building a DAG of overlapping regions in expand_bridges_detect_orientations()
2023-05-04 17:25:26 +02:00
Vojtech Bubnik
ccc193959b Merge branch 'vb_optimizations' 2023-05-04 15:29:17 +02:00
Vojtech Bubnik
c3178321b4 Optimization of triangle mesh slicing: scalable_allocator and hashing
of shared mutexes.
2023-05-04 15:27:32 +02:00
Vojtech Bubnik
fd437dcaf5 Little refactoring of douglas_peucker() 2023-05-04 15:27:32 +02:00
Vojtech Bubnik
6d0ceeb886 ClipperLib: Further optimization of memory allocation using scalable_allocator.
ClipperLib: SimplifyPolygon() - changed default winding number to positive,
      added strictly_simple parameter.
ClipperUtlis simplify_polygons() - removed "remove_collinear" parameter
2023-05-04 15:27:32 +02:00
Vojtech Bubnik
8593ad1f80 Organic supports improvements: Removing collisions with trees,
limiting how far tree bottoms at slanted surfaces could be extended
down below their last full circle position.
Placable areas are now calculated sitting on slightly inflated
top surface to indicate support of tree bottoms at slanted surfaces.
2023-05-04 15:26:41 +02:00
PavelMikus
34015349c1 Fix a rounded extrusion model when the new width is smaller than layer height - the code used radius in place of diameter 2023-05-04 14:59:50 +02:00
Lukas Matena
a039391131 Fixed rendering of horizontal ellipsis in ImGui controls 2023-05-04 13:56:46 +02:00
YuSanka
234956dfda Fix for SPE-1686 : Bug with instance rotation around X or Y
Steps to repro:
1. Add object
2. Increase instances
3. Select some instance
4. Rotate around X or Y
5. After MouseUp:
OSX -> hard crash
MSW and Linux -> object and instance are selected at a same time
2023-05-03 14:26:06 +02:00
enricoturri1966
eb0f03aa9b Merge branch 'master' of https://github.com/Prusa-Development/PrusaSlicerPrivate into et_sla_switch_view 2023-05-03 13:45:28 +02:00
enricoturri1966
d9dde32b78 SPE-1606 - Fixed a bunch of bugs/crashes related to visualizing original or processed volumes in 3D scene after slicing using SLA printers when multiple objects are on the printbed 2023-05-03 13:45:15 +02:00
Vojtech Bubnik
2eebba82f8 Merge remote-tracking branch 'remotes/origin/master' into vb_optimizations 2023-05-03 10:25:48 +02:00
tamasmeszaros
49fbf4ccce Avoid garbage error message when generating sla preview 2023-05-03 09:45:11 +02:00
tamasmeszaros
362267431b Fix transformation assembly problem for arrange polyogon 2023-05-03 09:21:57 +02:00
tamasmeszaros
6831b7094a Trying to fix transformation assembly problem for arrange polyogon 2023-05-03 09:21:57 +02:00
Vojtech Bubnik
af6c27b861 douglas_peucker(): fix after 63ca221394 2023-05-02 19:50:12 +02:00
Vojtech Bubnik
d0f38cd0b4 macOS clang is buggy, it does not implement __cpp_lib_hardware_interference_size
correctly.
2023-05-02 19:26:33 +02:00
Vojtech Bubnik
0c6f2261a3 Tree Supports: Extend bottoms of trees downwards to the object surface
if those supports are not sitting on a flat surface.
2023-05-02 18:45:07 +02:00
Vojtech Bubnik
15ccecf885 TreeSupport optimization: better parallel scaling, simpler simplification 2023-05-02 18:37:24 +02:00
Vojtech Bubnik
2600ba71ad Fix of undefined hardware_destructive_interference_size 2023-05-02 18:36:59 +02:00
Vojtech Bubnik
63ca221394 douglas_peucker(): Optimized for 32bit Point types. 2023-05-02 18:20:38 +02:00
Vojtech Bubnik
2e150795b1 ClipperLib: emplace_back() instead of push_back(). 2023-05-02 18:17:08 +02:00
Vojtech Bubnik
e7f4704ddc Organic supports, TreeModelVolumes: Cheaper simplification. 2023-05-02 16:35:39 +02:00
Vojtech Bubnik
a077f669ee Slight optimization of distance_to_squared() 2023-05-02 16:32:03 +02:00
Vojtech Bubnik
04f557693b Follow-up to 31a5daa5e4: Fixed missing include 2023-05-02 16:26:16 +02:00
Vojtech Bubnik
31a5daa5e4 Optimization of triangle mesh slicing: scalable_allocator and hashing
of shared mutexes.
2023-05-02 15:53:24 +02:00
Vojtech Bubnik
0836b06c73 Little refactoring of douglas_peucker() 2023-05-02 15:53:24 +02:00
Vojtech Bubnik
a7e17df25f ClipperLib: Further optimization of memory allocation using scalable_allocator.
ClipperLib: SimplifyPolygon() - changed default winding number to positive,
      added strictly_simple parameter.
ClipperUtlis simplify_polygons() - removed "remove_collinear" parameter
2023-05-02 15:53:24 +02:00
enricoturri1966
03608580c0 Do not allow to change selection or printable state, using the right panel, while the SLA supports gizmo is open and in editing mode. 2023-05-02 08:49:11 +02:00
YuSanka
4b68fbd973 Follow-up 88f4fa20df - Fixed next Linux specific issue : Select any instance in place where is active a gizmo space on instance 2023-04-27 15:55:07 +02:00
PavelMikus
4c872b0352 Paralellize SupportSpotGenerator!
Fix extra perimeters crash - problem with new ankerl hash map
Fix progress bar
2023-04-27 15:37:25 +02:00
enricoturri1966
15daac0811 Merge branch 'master' of https://github.com/Prusa-Development/PrusaSlicerPrivate into et_sla_switch_view 2023-04-26 12:44:17 +02:00
enricoturri1966
159e699cd5 Fixed conflicts after merge with master 2023-04-26 12:35:02 +02:00
enricoturri1966
cdf8cd83d5 Follow-up of 6e7fefbabf - Force using glGeneratedMipmap() function on AMD Custom cards, no matter what's the installed driver (Windows only) 2023-04-26 12:31:59 +02:00
YuSanka
cde530901a Follow up e3a868202d - fixed assert 2023-04-26 10:26:27 +02:00
YuSanka
e3a868202d Fix for SPE-1681 - Sidebar: Text in support field can be deleted 2023-04-26 09:57:35 +02:00
enricoturri1966
4986afe94f Tech ENABLE_GCODE_POSTPROCESS_BACKTRACE set as default 2023-04-26 09:34:02 +02:00
enricoturri1966
f1c5ffddfa Fixed typo 2023-04-26 09:06:17 +02:00
enricoturri1966
f9c1abbd50 SPE-1677 - Disable SLA supports and Hollow gizmos when the selected object is non-printable. Do not allow to set to non-printable an object while the SLA supports and Hollow gizmos are active. 2023-04-25 10:51:03 +02:00
enricoturri1966
bbea397aa6 SPE-1675 - Do not update layer editing when the mouse cursor is moved outside of the 3D scene while dragging 2023-04-25 10:02:50 +02:00
Vojtech Bubnik
9de269889c Improved parallel_foor grain size for ensuring 2023-04-24 11:34:37 +02:00
David Kocik
003350a4e2 Fix of version notification message. 2023-04-24 11:22:43 +02:00
enricoturri1966
b37d4e5b6c SPE-1674 - Follow-up of 9efed4be22 - More robust fix 2023-04-24 10:01:32 +02:00
Vojtech Bubnik
c9a55c2c01 Merge remote-tracking branch 'remotes/origin/vb_scalable_alloc' 2023-04-21 16:28:39 +02:00
Vojtech Bubnik
0d1522791d Refactored Arachne to use ankerl::unordered_dense hash tables
instead of std::unordered_set/map
The code is now generic enough to enable experiments with various
hash maps in the future.
2023-04-21 15:41:00 +02:00
Vojtech Bubnik
29719a7ab9 ClipperLib sometimes hangs forever on a single union / diff / offset task.
Implemented optional time limit on ClipperLib execution.
2023-04-21 15:38:23 +02:00
enricoturri1966
8a959883b4 Hide supports when Manual editing mode is active in SLA supports gizmo 2023-04-21 10:50:03 +02:00
PavelMikus
a65a68ad93 fix missing include 2023-04-21 10:04:45 +02:00