Commit Graph
88 Commits
Author SHA1 Message Date
Noisyfoxandzhou.xu 03a9014d3a Show wireframe in MMU painter gizmo (#2808)
* Remove unused shader files

* Port wireframe shader from BBS

* Enable wireframe in MMU painter

Co-Authored-By: zhou.xu <zhou.xu@bambulab.com>

---------

Co-authored-by: zhou.xu <zhou.xu@bambulab.com>
2023-11-21 17:17:22 +08:00
Noisyfox 70d86af253 Fix color blending of preview shells (#2799) 2023-11-19 22:20:42 +08:00
Noisyfox a590d4cead Fix toolbar rendering on Windows 2023-11-18 17:24:08 +08:00
Noisyfox 5045642de0 Merge branch 'main' into dev/gizmo 2023-11-18 14:51:32 +08:00
Noisyfox 67fe5ee7f5 Bring back anti-aliasing to toolbar icons (#2739) 2023-11-18 14:51:22 +08:00
Noisyfox b2642039c7 Fix creality k1/max default materials (#2609) (#2767) 2023-11-17 14:28:48 +08:00
Noisyfox f6e4c48fe7 Merge branch 'main' into dev/gizmo 2023-11-17 09:18:31 +08:00
Noisyfox 2fc5a7d01e Fix layer height modifier layout (#2708) (#2756) 2023-11-16 19:15:37 +08:00
Noisyfox 016d3a74eb Improve Windows crash log (#2736)
* Show RVA of each call stack so we can locate the symbol with pdb file

* CI upload pdb file
2023-11-15 19:00:55 +08:00
Noisyfox b1a164b67f Fix scaling of min_width_top_surface when using abs value (#2725) 2023-11-14 17:15:29 +08:00
Noisyfox d6c2192fe2 Merge branch 'main' into dev/gizmo 2023-11-12 11:03:05 +08:00
Noisyfox 5669b4fef0 Merge branch 'main' into dev/gizmo 2023-11-11 16:28:17 +08:00
Noisyfox 6510fd4054 Hide raycast debug window 2023-11-11 16:27:44 +08:00
Noisyfox 4e5e5a7ae8 Fix min brush size when using scroll wheel (#2534) (#2693) 2023-11-11 15:15:57 +08:00
NoisyfoxandZdDroid 714667ee1c Add search printer model in Setup wizard (#2692)
Add search printer model in Setup wizard (#2563)
Adopted from #2464

Co-authored-by: ZdDroid <601865048@qq.com>
2023-11-11 15:13:24 +08:00
Noisyfox 66d4b4d59a Merge branch 'main' into dev/gizmo 2023-11-10 23:32:14 +08:00
Noisyfox ee8ea0df04 Rewrite bed raycaster registering that fixes crash when creating new project 2023-11-10 23:02:11 +08:00
Noisyfox 7984b4dc48 Fix complie error after merge 2023-11-10 10:54:02 +08:00
Noisyfox cf5c19fa24 Merge remote-tracking branch 'origin/main' into dev/gizmo 2023-11-10 09:57:11 +08:00
Noisyfox 97502df924 Fix cli segfault (#2661) (#2665) 2023-11-09 22:22:43 +08:00
NoisyfoxandLukáš Hejl f16feff2a4 Fixes scars on thing walls when "avoid crossing wall" is turned on (#2659)
* Travel very close to the inner holes, could cross external perimeter when the avoid crossing perimeters was enabled.

(cherry picked from commit prusa3d/PrusaSlicer@6c51e5148c)

* Modified variable offset in the avoid crossing perimeters to not cause scars on thin objects (#7699).

Previously, the minimum contour width was chosen too conservative and, on some thin objects, only allowed minimal (or non) offset. This could result in travels being planned along the outer perimeter.

Now, the minimum contour width is chosen much smaller at the start and tested if the variable offset wasn't failed (the outer contour broke up into more parts, more or fewer holes, etc.).
If any problem is detected, the variable offset is recalculated with a larger minimum contour width.

(cherry picked from commit prusa3d/PrusaSlicer@dc00f0bf98)

---------

Co-authored-by: Lukáš Hejl <hejl.lukas@gmail.com>
2023-11-09 22:21:44 +08:00
Noisyfox cd8f555714 Fix some gui issues (#2653)
* Fix text gizmo input dialog caption alignment

* Fix issue that layer slider top/bottom label left edge been cut by draw region (#2603)
2023-11-09 22:19:40 +08:00
Noisyfox 5f001c89fd Merge remote-tracking branch 'origin/main' into dev/gizmo 2023-11-08 09:14:28 +08:00
Noisyfox 483475ff48 Fix canvas background in dark mode 2023-11-08 09:14:16 +08:00
Noisyfox c0a8f430f8 Add back the option to disable ensure vertical shell thickness and detect narrow internal solid infill (#2626)
* Add back the option to disable `ensure vertical shell thickness` (#2602)

* Add back the option to disable `detect narrow internal solid infill` (#2623)
2023-11-06 23:21:07 +08:00
Noisyfox e57f68a266 Fix painter gizmos crash on macOS 2023-11-06 20:42:02 +08:00
Noisyfox 28e2995a01 Cut: Fix crashing in programming cut. Also fixes the cut z offset. 2023-11-05 16:03:10 +08:00
Noisyfox 018b2744db Text: Fix text moving grabber 2023-11-04 11:41:11 +08:00
Noisyfox 090a9247cb Cut: Fix model rendering 2023-11-04 11:41:11 +08:00
Noisyfox 3ec927a841 Cut: Use Orca color schema and dialog layout 2023-11-04 11:41:11 +08:00
Noisyfox ce2836a7f9 Measure: Fix copy to clipboard encoding 2023-11-04 11:41:11 +08:00
Noisyfox 1bfd9f63b6 Measure: Update measure dialog layout 2023-11-04 11:41:11 +08:00
Noisyfox 4843cda535 Measure: Use Orca color schema 2023-11-04 11:41:11 +08:00
Noisyfox 2c00408d08 Measure: Update measure gizmo tooltip 2023-11-04 11:41:11 +08:00
Noisyfox d25780ae4a Fix-position tooltip should also be clamped inside render area 2023-11-04 11:41:10 +08:00
Noisyfox c31e1f5229 Measure: Fix measure window position 2023-11-04 11:41:10 +08:00
Noisyfox 005b83912d Do not compile sla related gizmos 2023-11-04 11:41:10 +08:00
Noisyfox 6a40d3af16 Fix volume picking in cut gizmo 2023-11-04 11:41:09 +08:00
Noisyfox cd1705e6eb Implement plate picking 2023-11-04 11:41:06 +08:00
Noisyfox b2f94e16aa Fix variable init 2023-11-04 11:41:06 +08:00
Noisyfox 65b6856262 Fix macos build 2023-11-04 11:41:06 +08:00
Noisyfox 467223b8b0 Fix move gizmo grabber rendering 2023-11-04 11:41:06 +08:00
Noisyfox 5ce3ec716e Fix draw cut line 2023-11-04 11:41:06 +08:00
Noisyfox a50c5a2b7a Fix preview shell transparency 2023-11-04 11:41:05 +08:00
Noisyfox 0d27e084f3 Fix thumbnail shader 2023-11-04 11:41:05 +08:00
Noisyfox ac001f8816 Fix pick rendering depth issue 2023-11-04 11:41:05 +08:00
Noisyfox e211e7d144 Fix mm rendering 2023-11-04 11:41:05 +08:00
Noisyfox 511bfa71b6 Fix plate texture rendering depth issue 2023-11-04 11:41:05 +08:00
Noisyfox 8f49be40b7 Fix preview shell rendering 2023-11-04 11:41:04 +08:00
Noisyfox 03daf61862 Fix outline rendering 2023-11-04 11:41:04 +08:00
Noisyfox e6443b5b27 Removed empty IMSlider_Utils.hpp 2023-11-04 11:41:04 +08:00
Noisyfox c5b209270c Fix a few issues in cut gizmo 2023-11-04 11:41:04 +08:00
Noisyfox 6d4e0840bc Fix move gizmo grabber connection render 2023-11-04 11:41:03 +08:00
Noisyfox 528fb630bc Organic: Fix support blocker (#2595)
Expand blockers a little bit to compensate the error in facet projection
2023-11-04 02:42:30 +08:00
NoisyfoxandPavelMikus fcb289124e fix deadlock condition varaible use in netfabb wrapper (#2583)
(cherry picked from commit prusa3d/PrusaSlicer@04ac99a54e)

Co-authored-by: PavelMikus <pavel.mikus.mail@seznam.cz>
2023-11-02 18:40:19 +08:00
Noisyfox e641903b16 Fix crash when referencing an invalid variable name (#2486)
Fix crash when referencing an invalid variable name using the old placeholder parser syntax
2023-10-22 19:35:53 +08:00
951252c597 Change direction for perimeter extrusion at odd layers. (#2413)
* Change direction for perimeter extrusion at odd layers.

Initial test code based on supermerill/SuperSlicer@87245ae3c1

* Perimeters for both contours and holes can have alternating direction, to support overhangs on both side.
Also fixes wipe on loop.

* Only reverse order if the loops have steep overhang

* Support a special case that treat every layer as steep overhang

* Add options

* Disable overhang reverse if vase mode is enabled

* Allow extrusion reversal and skip overhang detection if fuzzy skin

---------

Co-authored-by: supermerill <merill@free.fr>
Co-authored-by: SoftFever <softfeverever@gmail.com>
2023-10-21 17:23:05 +08:00
Noisyfox 56fdbf5310 Fix layer path order when multi-layer elephant compensation is used (#2443) 2023-10-19 19:57:53 +08:00
075a08bca8 Initial port of the new ensure vertical thickness algorithm from PrusaSlicer (#2382)
* Initial port of the new ensure vertical thickness algorithm from PrusaSlicer.

Based on prusa3d/PrusaSlicer@1a0d8f5130

* Remove code related to "Detect narrow internal solid infill" as it's handled by the new ensuring code

* Support different internal solid infill pattern

* Ignore removed options

---------

Co-authored-by: Pavel Mikuš <pavel.mikus.mail@seznam.cz>
Co-authored-by: SoftFever <softfeverever@gmail.com>
2023-10-19 19:55:05 +08:00
Noisyfox f39f5effa1 Fix crash on BBL's calibration tab (#2403) 2023-10-13 22:55:07 +08:00
Noisyfox fc0067ccba Remove fix_slicing_errors because it makes no sense (#2370)
this also fixes #2344
2023-10-12 23:02:27 +08:00
Noisyfox b5ee7a0e44 Show as much information as possible in crash log (#2386) 2023-10-11 22:14:21 +08:00
Noisyfox 0694863fb9 Use calibration tutorial gitee mirror for China users 2023-10-08 22:30:33 +08:00
Noisyfox 712de9255f Show tooltips for plate buttons (#2176) 2023-10-07 23:11:41 +08:00
Noisyfox 993e653c54 Fix crash when switching infill pattern between cubic & adaptive cubic
Cheery picked from prusa3d/PrusaSlicer@2b0a7ccb2c
2023-10-06 23:09:01 +08:00
Noisyfox b41fdcdc50 Fix issue with overhang-extra-perimeter on complicated multi-part models (#2326) 2023-10-06 22:12:11 +08:00
Noisyfox cf8052cbfd Fix crash when use adaptive cubic sparse infill (#2315) (#2318) 2023-10-05 20:13:22 +08:00
Noisyfox d31ca04720 Show both layer time and tick info when tick is highlighted (#2312)
* Show both layer time and tick info when tick is highlighted

* Use previous layer's complete time as current layer's tick time
2023-10-04 22:45:40 +08:00
Noisyfox 8e70081879 Fix issue that the slice button is still disabled after a tick is deleted (#2308)
Fix an UAF which causes the slice button being disabled after a tick is deleted
2023-10-04 00:03:19 +08:00
Noisyfox 85e24e62fa Show estimated print time in the ruler (#2305)
* Calculate tick by mouse hover position

* Draw hover tick

* Show hover layer time

* Make sure hovered tick get updated immediately
2023-10-04 00:02:26 +08:00
Noisyfox 03fec0841b Fix macos deps build (#2291) 2023-10-03 23:27:33 +08:00
NoisyfoxandSoftFever d4e6b4fe47 Hide bambu-specific calibration tab for non-bambu printers (#2197) (#2259)
* Hide bambu-specific calibration tab for non-bambu printers (#2197)

* Hide Calibration tab only

---------

Co-authored-by: SoftFever <softfeverever@gmail.com>
2023-09-30 10:03:13 +08:00
Noisyfox 761db8537e Update error message to make it a bit more informative (#2249) 2023-09-29 23:39:58 +08:00
NoisyfoxandPavel Mikus ee0e6a7227 Port "Extend sparse infill" from Prusa (#2134)
* Remove BambuLab's implementation of solid infill bridging enhancement
, will use Prusa's instead

* Port "Extend sparse infill" from Prusa

* Improve anchoring by shifting the lines half-spacing

* Add missing fill patterns

* Improve anchoring by keeping fine details

* Make sure the opposite directions do not cancel each other

---------

Co-authored-by: Pavel Mikus <pavel.mikus.mail@seznam.cz>
2023-09-29 23:39:12 +08:00
NoisyfoxandVojtech Bubnik 7ef43f6849 Various support improvements and bugfixes (#2202)
* Organic supports: Added check for variable layer height, with which
Organic supports are not compatible.
Fixes prusa3d/PrusaSlicer#9528 and similar.
Check the object max Z against build volume Z in Print::validate().

Cherry-picked from prusa3d/PrusaSlicer@5b94971

* Fix crash with default tree support

* Show "support_critical_regions_only" only when using auto normal tree supports (#2195)

* Fix organic tree check

---------

Co-authored-by: Vojtech Bubnik <bubnikv@gmail.com>
2023-09-24 22:58:04 +08:00
NoisyfoxandVojtech Bubnik 685e058c35 Parallelized PrintObject::bridge_over_infill() (#2132)
Co-authored-by: Vojtech Bubnik <bubnikv@gmail.com>
2023-09-17 11:22:11 +08:00
Noisyfox a73e533bdb Fix gcode viewer on linux (#2110) 2023-09-16 22:26:20 +08:00
Noisyfoxandenricoturri1966 f2da5b39a1 Fix GCode viewer first layer height in vase mode (#2051)
Follow-up of 6be84d529d740c44c1e9bf533e70e167b3442063 - Fixed processing of spiral vase mode in GCodeProcessor::process_G1

Co-authored-by: enricoturri1966 <enricoturri@seznam.cz>
2023-09-10 11:38:37 +08:00
Noisyfox 7a8f020fcf Fix issue that cmake install is skipped during windows build (#2029)
Fix windows build
2023-09-07 23:50:35 +08:00
Noisyfox 69d840030d Fix calibrtion crash (#2019) (#2023) 2023-09-06 22:09:24 +08:00
Noisyfox 4011a0d748 Fix double quotes escape (#1397 #1435 #1946 #1990) (#2002) 2023-09-05 20:18:43 +08:00
Noisyfox f9abebac22 Fix "unknown vector variable type" error when using bambu filament ch… (#1982)
* Fix "unknown vector variable type" error when using bambu filament change ( #1979)

* Update comment
2023-09-03 14:49:54 +08:00
Noisyfox 1fdfc2fa45 Fix raft size when non-organic tree support is enabled (#1973) 2023-09-03 00:43:28 +08:00
NoisyfoxandVojtech Bubnik a1464735ce Initial port of organic tree support from PrusaSlicer (#1938)
* Initial port of organic tree support from PrusaSlicer

* Port missing Organic support parameters from PrusaSlicer

* Update parameter naming

* Reorganize the `raft_first_layer_expansion` and `raft_first_layer_density` parameters as they are not only used by rafts

* Reset support style only in simple mode

* Sync latest update from PrusaSlicer & copyrights

* Fix organic tree support crash with invalid parameters

---------

Co-authored-by: Vojtech Bubnik <bubnikv@gmail.com>
2023-09-02 17:29:43 +08:00
b9ca1c8720 Port overhang extra perimeters from PrusaSlicer (#1939)
* Port overhang extra perimeters from PrusaSlicer

* Reduce duplicated code

* Add credits

---------

Co-authored-by: SoftFever <softfeverever@gmail.com>
Co-authored-by: PavelMikus <pavel.mikus.mail@seznam.cz>
2023-08-28 19:56:09 +08:00
NoisyfoxandSoftFever f714e72faa Simple brim ears impl (#1779)
* First working brim ear impl, ported from SuperSlicer

* Make brim ears configurable

* Generate ears only if ear size > 0

* Fix `Polygon::convex_points` as well as brim ear max angle

* Fix another error in `Polygon::convex_points` and `Polygon::concave_points`

* Apply brim ears to inner brims as well

* tweak hide and disable condition a bit

---------

Co-authored-by: SoftFever <softfeverever@gmail.com>
2023-08-13 22:29:45 +08:00
b571318be8 Make Overhang Printable (#1615)
* First working conical overhang impl

* Add settings for Make overhang printable

* Added an Advanced setting to the Quality menu for Make overhang printable
* Allow toggling the feature and adjusting the angle threshold

* Retain recesses in the bottom of the model when "Make Overhangs Printable" is turned on

* Add settings for Make overhang printable hole size

* Allow disabling conical overhang per modifier

* Should check upper layer instead

* Skip unnecessary layers

* Apply conical overhang before any size compensation
which fixs the `lslices` not being updated issue and also the elephant foot compensation

* 1. Fix an issue that changing make_overhang_printable related parameters won't clear caches properly.
2. Tweak the logic of make_overhang_printable parameter so that it works for per region/object/print level. Remove make_overhang_printable_disable parameter.

* Change default make_overhang_printable_angle to 55

* One more missing commit

* 1. Skip checking default_region_config()->make_overhang_printable
2. Handle make_overhang_printable_angle and make_overhang_printable_hole_size value change

---------

Co-authored-by: David Bern <odie5533@users.noreply.github.com>
Co-authored-by: SoftFever <softfeverever@gmail.com>
2023-07-30 20:20:43 +08:00
NoisyfoxandSoftFever d7a1241550 Port single wall on top surface from classic wall generator to Arachne (#1583)
* Port single wall on top surface from classic wall generator to Arachne

* Move the surface split code into a separate function to be shared between classic and Arachne. This also adds bridge detection to Arachne as well.

* Remove unwanted infills

* Fix insets calculating

---------

Co-authored-by: SoftFever <softfeverever@gmail.com>
2023-07-29 10:12:47 +08:00