Commit Graph
100 Commits
Author SHA1 Message Date
Noisyfox 8a42aed683 Fix issue with auto orient a scaled object. (#3904)
Partly revert 73ab032e82
2024-02-15 20:08:33 +08:00
NoisyfoxandSoftFever 989fab03c0 Fix some rotation-related issues (#3890)
* Fix issue with max_z after rotation

* Don't use `object.bounding_box()`, use `bounding_box_exact()` instead.

* Fix auto-orient

---------

Co-authored-by: SoftFever <softfeverever@gmail.com>
2024-02-15 20:08:28 +08:00
Noisyfox 40f678006d Fix painting Gizmo rendering on AMD Vega GPUs (#3663)
* Fix painting gizmo rendering on AMD Vega GPUs

* Fix issue that support & seam painting gizmo rendering issue if wireframe is enabled in MMU gizmo
2024-02-14 19:35:20 +08:00
NoisyfoxandFilip Sykala - NTB T15p 002208fc8c QoL: Keyboard shortcuts updates & fixes (#3457)
* Bring back the shortcut to zoom in & out

* Update keyboard shortcut info

* Update keyboard shortcut info

* Different handling of shortcut 'T' for emboss text

Cherry-picked from prusa3d/PrusaSlicer@58e3143ad8

Co-authored-by: Filip Sykala - NTB T15p <Filip.Sykala@prusa3d.cz>

---------

Co-authored-by: Filip Sykala - NTB T15p <Filip.Sykala@prusa3d.cz>
2024-01-04 19:28:19 +08:00
Noisyfox 08d938b8e7 Fix NaN when adding negative part (#3423) (#3431)
(cherry picked from commit 1ea33f0919)
2024-01-02 20:49:20 +08:00
Noisyfox b624aa0580 Fix issue that "Per-glyph" option not working when UI is in Chinese (#3425)
(cherry picked from commit 712478c240)
2024-01-02 16:01:29 +08:00
Noisyfox 7ddaa8d383 Fix crash when click the color paint gizmo when object part is selected (#3405)
Fix crash when click the color paint gizmo when object part is selected (#3404)

Cherry-picked from bambulab/BambuStudio@1e99ce9535

Co-authored-by: liz.li <liz.li@bambulab.com>
(cherry picked from commit 8fd4477110)
2024-01-01 20:06:20 +08:00
Noisyfox 08577429ac Fix preview legend window size (#3363)
Fix issue that the legend window expands to all available horizontal space if scrollbar is displayed

(cherry picked from commit a8ade1554f)
2023-12-30 22:03:07 +08:00
NoisyfoxandSoftFever 35d5b62604 Show used filament length and weight per line type (#3246)
Show used filament length and weight per feature

Co-authored-by: SoftFever <softfeverever@gmail.com>
2023-12-24 11:54:55 +08:00
Noisyfox e034af7050 Trigger task progress update on paint event as well (#3237) 2023-12-23 22:35:07 +08:00
Noisyfox 01706eff84 Fix tutk logs location (#3209) (#3248) 2023-12-23 15:02:06 +08:00
Noisyfox 401ac1adef Fix crash on MacOS when clicking filament dropdown in object list (#3205)
* Disable optimization for `RelWithDebInfo` for Clang as well

* Fix crash on MacOS (#3134, #3202)
2023-12-21 14:19:22 +08:00
NoisyfoxandSoftFever 6bb0d5ec30 Do not limit the max window size (#3149)
Do not limit the max window size (#2889)

Co-authored-by: SoftFever <softfeverever@gmail.com>
2023-12-20 21:09:13 +08:00
Noisyfox 7739252711 Another sidebar improvement PR (#3194)
* Show sidebar when opening normal 3mf file

* Retain sidebar size when switching between tabs
2023-12-20 11:21:48 +08:00
Noisyfox cc06a2e83b Fix sidebar not shown when open 3mf file from command line arg (#3172)
* Show sidebar when open file from cmd

* Fix issue that sidebar collapse button is not enabled when load 3mf file with gcode
2023-12-19 11:15:26 +08:00
Noisyfox 871f163a32 Fix regression that shell is not rendered unless slice is completed (#3181)
* Fix issue that `is_update_alpha` doesn't work

* Fix regression that shell is not rendered unless slice is completed

* Format
2023-12-19 11:07:21 +08:00
Noisyfox 0f87fdb98b Fix window maximize when task bar is on the left. (#3148)
Partially revert fe80dc6
2023-12-16 15:31:10 +00:00
Noisyfox fe80dc6ca6 Do not limit the max window size (#2889) (#3142) 2023-12-16 14:25:28 +00:00
NoisyfoxandFilip Sykala - NTB T15p 7b6dbfdbcc Fix checking is volume svg (#3129)
(cherry picked from commit prusa3d/PrusaSlicer@f31d7f1d8c)

Co-authored-by: Filip Sykala - NTB T15p <Filip.Sykala@Prusa3D.cz>
2023-12-15 22:59:17 +08:00
933aa3050b Port Emboss & SVG gizmo from PrusaSlicer (#2819)
* Rework UI jobs to make them more understandable and flexible.

* Update Orca specific jobs

* Fix progress issue

* Fix dark mode and window radius

* Update cereal version from 1.2.2 to 1.3.0

(cherry picked from commit prusa3d/PrusaSlicer@057232a275)

* Initial port of Emboss gizmo

* Bump up CGAL version to 5.4

(cherry picked from commit prusa3d/PrusaSlicer@1bf9dee3e7)

* Fix text rotation

* Fix test dragging

* Add text gizmo to right click menu

* Initial port of SVG gizmo

* Fix text rotation

* Fix Linux build

* Fix "from surface"

* Fix -90 rotation

* Fix icon path

* Fix loading font with non-ascii name

* Fix storing non-utf8 font descriptor in 3mf file

* Fix filtering with non-utf8 characters

* Emboss: Use Orca style input dialog

* Fix build on macOS

* Fix tooltip color in light mode

* InputText: fixed incorrect padding when FrameBorder > 0. (ocornut/imgui#4794, ocornut/imgui#3781)
InputTextMultiline: fixed vertical tracking with large values of FramePadding.y. (ocornut/imgui#3781, ocornut/imgui#4794)

(cherry picked from commit ocornut/imgui@072caa4a90)
(cherry picked from commit ocornut/imgui@bdd2a94315)

* SVG: Use Orca style input dialog

* Fix job progress update

* Fix crash when select editing text in preview screen

* Use Orca checkbox style

* Fix issue that toolbar icons are kept regenerated

* Emboss: Fix text & icon alignment

* SVG: Fix text & icon alignment

* Emboss: fix toolbar icon mouse hover state

* Add a simple subtle outline effect by drawing back faces using wireframe mode

* Disable selection outlines

* Show outline in white if the model color is too dark

* Make the outline algorithm more reliable

* Enable cull face, which fix render on Linux

* Fix `disable_cullface`

* Post merge fix

* Optimize selection rendering

* Fix scale gizmo

* Emboss: Fix text rotation if base object is scaled

* Fix volume synchronize

* Fix emboss rotation

* Emboss: Fix advance toggle

* Fix text position after reopened the project

* Make font style preview darker

* Make font style preview selector height shorter

---------

Co-authored-by: tamasmeszaros <meszaros.q@gmail.com>
Co-authored-by: ocornut <omarcornut@gmail.com>
Co-authored-by: SoftFever <softfeverever@gmail.com>
2023-12-09 22:46:18 +08:00
Noisyfox 59164bff88 Various fix & improvements to collapse sidebar (#3044)
* Fix sidebar collapse button color in dark mode

* Make collapse button half the size

* Add tooltip to sidebar collapse button

* Don't trigger sidebar collapse hotkey twice

* Fix sidebar disable on gcode-only mode
2023-12-09 08:41:09 +00:00
Noisyfox f598a1209a Only regenerate bed triangles if actually changed (#3039)
* Remove unused bed texture

* Only regenerate bed triangles if actually changed
2023-12-09 08:40:04 +00:00
Noisyfox 7cfa4f3bcd QoL: Make sidebar collapsible, resizable, movable, floatable and dockable (#2972)
* Add sidebar docking

* Fix sidebar initial size

* Fix sidebar collapse

* Hide floating sidebar when switch away from model view

* Add option to reset window layout

* Save & load window layout

* Fix a small issue with gcode toggle

* Properly save & restore sidebar state

* Show collapse icon based on sidebar docking state

* Adjust toolbar position based on docking position

* Fix return toolbar position

* Fix plate list position
2023-12-08 09:16:16 +00:00
Noisyfox a6c927d87f Add option to disable emitting M73 gcode (#2114) (#2940) 2023-12-03 09:36:27 +08:00
Noisyfox 0cee513416 Add a simple subtle outline effect by drawing back faces using wireframe mode (#2934)
* Add a simple subtle outline effect by drawing back faces using wireframe mode

* Show outline in white if the model color is too dark

* Make the outline algorithm more reliable

* Enable cull face, which fix render on Linux

* Fix `disable_cullface`
2023-12-03 09:27:03 +08:00
Noisyfox e8a053e248 Use windows API to copy files (#2923) 2023-11-29 22:43:37 +08:00
Noisyfox 0fa884d9ca Various infill improvements (#2716)
* Fix issue that sparse infill threshold no longer working

* Turn all internal sparse infill into solid infill if infill density is 100%

* Allow combining solid infill when sparse infill density is 100%
2023-11-29 21:28:23 +08:00
NoisyfoxandSoftFever 284c3e71eb Some changes to gcode window toggles (#2704)
* Show gcode window automatically (#2572)

* Move the show gcode toggle to view menu, and remember if gcode window is shown last time

* fix an issue when merging main branch

---------

Co-authored-by: SoftFever <softfeverever@gmail.com>
2023-11-29 21:19:56 +08:00
Noisyfox a6163a1550 Another fix to the preview shell (#2821) 2023-11-22 23:21:34 +08:00
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