Commit Graph
100 Commits
Author SHA1 Message Date
NoisyfoxandYuSanka ed41e3e5ce Disable "cut to parts" when dovetail is selected. (#6891)
* Disable "cut to parts" when dovetail is selected.
Sync with latest PrusaSlicer code.

Co-authored-by: YuSanka <yusanka@gmail.com>
2024-09-25 19:31:17 +08:00
Noisyfox 9d3d242453 Improve fuzzy skin with modifier (#6759)
* Pass all compatible regions to perimeter generator

* Simplify & unify fuzzify detection

* Simplify `to_thick_polyline`

* Group regions by fuzzy skin settings

* Initial code structure of multi-regional fuzzy skin

* Determine fuzzy type by all compatible regions

* Add fuzzy region debug

* Implement the line split algorithm

* Do splitted fuzzy in classic mode

* Disable debug macros

* Fix infinit loop issue when segment points are out of order

* Fix path connection

* Implement splitted fuzzy in Arachne mode
2024-09-23 00:41:17 +08:00
Noisyfoxandzhou.xu 8b8c0cad2a FIX:open or replace 3MF file case insensitive (#6802)
jira: STUDIO-7678
Change-Id: I32b34efa053da25edab80ebff1cfe0a414042dd5
(cherry picked from commit fa07ae4d21d3c4cf5286a38f2cc0a35363a5f53a)

Co-authored-by: zhou.xu <zhou.xu@bambulab.com>
2024-09-19 00:03:57 +08:00
Noisyfox 47965b02d3 Fix small top/bottom solid infill filtering (#6794)
* Fix issue that small sparse gaps are not filtered out correctly

* Fix code order
2024-09-19 00:02:16 +08:00
Noisyfox ad6ea3fb06 Fix crash when first layer is empty (#6817)
* Fix crash when first layer is empty (SoftFever/OrcaSlicer#6807)
2024-09-18 22:34:36 +08:00
Noisyfox 375816d331 Fix fuzzy skin randomness for Arachne wall generator (#6770)
* Fix fuzzy skin randomness for Arachne wall generator (SoftFever/OrcaSlicer#6228)
2024-09-15 23:27:54 +08:00
Noisyfox 97d4ead854 Prevent toolbar clicking when mouse is hovering over layer height editor (#6727)
* Prevent toolbar clicking when mouse is hovering over layer height editor (SoftFever/OrcaSlicer#6713)
2024-09-11 22:28:49 +08:00
Noisyfox 5c3e094450 Fix issue that github action windows build could not find win10sdk (#6726)
* Fix issue that github action windows build could not find win10sdk (SoftFever/OrcaSlicer#6724)

* Another attempt to fix the build issue

* This should work now
2024-09-11 22:24:47 +08:00
Noisyfox 92b933f274 Fix issue that "total filament used [g]" is missing from gcode (#6728)
* Fix issue that "total filament used [g]" is missing from gcode
2024-09-11 22:17:32 +08:00
Noisyfox d87734ebfa Fix various issues with fuzzy skin (#6716)
* Fix issue that `fuzzy_skin_first_layer` not respected by classic wall generator

* Fix issue that Contour / Contour and hole mode not working properly (SoftFever/OrcaSlicer#6414)

* We have `is_contour`, so need for complicated hole detection
2024-09-10 23:28:39 +08:00
Noisyfox d4c0a8b982 Fix Anycubic Kobra 0.4 nozzle profile (#6678)
* Fix Anycubic Kobra 0.4 nozzle profile
2024-09-08 22:52:54 +08:00
Noisyfox 53a3e86de3 Fix crash when dragging text in WebViews on macOS (#6668)
* Fix crash when dragging text in WebViews on macOS (SoftFever/OrcaSlicer#6608)
2024-09-07 17:39:18 +08:00
Noisyfox e3c1716d7c Fix calibration tab when switching between BBL&non-BBL printers (#6661)
* Fix calibration tab when switching between BBL&non-BBL printers (SoftFever/OrcaSlicer#6563)

* Merge branch 'main' into bugfox/cali_tab
2024-09-07 17:09:10 +08:00
Noisyfox a219ebe229 Fix only one wall on first layer when raft is used (SoftFever/OrcaSlicer#6616) 2024-09-05 11:34:29 +08:00
ee17002a50 Fix bridge anchor when the bridge is the top surface (SoftFever/OrcaSlicer#6642)
Cherry-picked from prusa3d/PrusaSlicer@b133579126

Co-authored-by: Martin Šach <martin.sachin@gmail.com>
Co-authored-by: Lukas Matena <lukasmatena@seznam.cz>
2024-09-05 10:23:18 +08:00
Noisyfox 63ebebf4a0 Improve debugging output 2024-09-05 09:45:59 +08:00
Noisyfox b2b63b296d Fix GL_INVALID_OPERATION 2024-09-01 01:00:36 +08:00
Noisyfox f244aed9c0 Add option to turn outline on & off 2024-08-30 23:25:03 +08:00
Noisyfox 445dc2b0f1 Merge branch 'main' into dev/outline-2 2024-08-30 21:43:26 +08:00
Noisyfox 3757295b95 A bunch of tab fixes (#6551)
* Make sure the speed tab is properly hidden when toggle off advance mode

* Clear each page before clearing the parent, otherwise the child pages will be destroyed twice

* Fix crash if current selected tab is positioned after the removed tab

* Fix issue that sometimes the printer config first page is not displayed

* Fix issue that the wrong tab item get bold if the number of tabs changed
2024-08-26 20:21:59 +08:00
Noisyfox 2bf54878f7 Make the checkbox on export preset dialog more visible in dark mode (#6539)
* Make the checkbox on export preset dialog more visible in dark mode (SoftFever/OrcaSlicer#6536)

* Merge branch 'main' into bugfox/export-checkbox
2024-08-25 12:42:01 +08:00
Noisyfox a68fc86c4e Fix crash in printer config when switching tabs (#6537)
* Fix ASAN with MSVC

* Make ASAN happy

* Avoid deleting activated tab button by not calling `DeleteAllItems` (#SoftFever/OrcaSlicer#6486)
2024-08-23 22:55:10 +08:00
Noisyfox 70495a3bf9 Use texture instead of texelFetch to make it smoother 2024-08-19 23:11:01 +08:00
Noisyfox 13e18d1d65 Use a 2-pass depth based outline algorithm when selected 2024-08-18 19:31:08 +08:00
Noisyfox 12c4ff0d93 Fix "Open Containing Folder" on Linux (#6469)
Fix "Open Containing Folder" on Linux (SoftFever/OrcaSlicer#6449)
2024-08-18 16:31:39 +08:00
Noisyfox 4dd7d79d76 Fix crash on Linux when switching between tabs in printer config (#6437)
* Fix crash due to the wrong window get returned in `PointCtrl` (SoftFever/OrcaSlicer#6261).
`getWindow()` must return the control itself, not its child control; otherwise the child control will be destroyed twice when the tab container is destroyed.

* Fix another crash on Linux caused by unused undo button
2024-08-18 16:30:45 +08:00
Noisyfox f136f04cfd Fix Linux build & some warnings (#6438)
* Fix linux deps debug build

* Use the same DL_CACHE for release build when building debug version of deps on Linux.
This prevents downloading the same source packages twice, and avoid downloading again after deleting the build dir.

* Fix debug build

* Fix warnings "loop variable creates a copy from type" and "loop variable binds to a temporary constructed from type"
2024-08-18 11:33:00 +08:00
NoisyfoxandLukáš Hejl bb5e2af509 Fix/crashing when generating walls (#6325)
* Fix crash when filling very tiny (1-5nm) gaps (#6279)

Cherry-picked from prusa3d/PrusaSlicer@8784ca0ecf

Co-authored-by: Lukáš Hejl <hejl.lukas@gmail.com>

* SPE-2256: Fix the issue that we used the old Voronoi graph during the detection of invalid Voronoi diagrams.

This happens because we didn't set a modified flag that is required to be set before we use the new Voronoi graph.
Possibly related to #12385

Cherry-picked from prusa3d/PrusaSlicer@2de1f3aa45

Co-authored-by: Lukáš Hejl <hejl.lukas@gmail.com>

---------

Co-authored-by: Lukáš Hejl <hejl.lukas@gmail.com>
2024-08-03 22:01:37 +08:00
Noisyfox 783570ebf6 Fix access violation when slicing project with print-by-object mode (#5984)
Fix issue that models with only one color become multicolor after slicing when print-by-object mode is used.
This applys the same fix as 612204b443
2024-07-30 22:32:15 +08:00
Noisyfox 04eec93d0a Fix some utf-8 related issues in Cut gizmo (#6050)
* Fix some utf-8 related issues in Cut gizmo
2024-07-11 23:48:51 +08:00
Noisyfox adec6b7ebd Try fixing build with gcc 13.3 (SoftFever/OrcaSlicer#5991) (#5992) 2024-07-07 11:48:05 +08:00
NoisyfoxandSoftFever 4145f45e42 Port of Cura's multi-material interlocking (#5775)
* Init port of Cura's MM interlocking

* Refactor a bit

* Fix crash when bottom surface is multi-color

* Fix crash when boundary avoidance is 0

* Add config

---------

Co-authored-by: SoftFever <softfeverever@gmail.com>
2024-06-30 23:25:15 +08:00
Noisyfox eeae1b2c7e Fix few mirror related issues (#5827)
* Do not use get_scaling_factor then construct the matrix again, because it cannot properly handle situations that contains negative scale (mirror) / shear (SoftFever/OrcaSlicer#5578)

* Do not use get_scaling_factor then construct the matrix again, because it cannot properly handle situations that contains negative scale (mirror) / shear (SoftFever/OrcaSlicer#5578, SoftFever/OrcaSlicer#4719)
2024-06-26 18:08:15 +08:00
Noisyfox 76fc7e6d21 Fix PrusaLink upload when PUT is used (#5843)
(SoftFever/OrcaSlicer#5840) Fix PrusaLink upload when PUT is used
2024-06-25 00:48:38 +08:00
Noisyfox cd6cd0786f Various improvements to SimplyPrint integration (#4831)
* Allow using BBL's device tab when 3rd party print host is used

* Add option to open SimplyPrint panel in device tab after uploading

* Fix default print host for prusa connect

* Do not set api key in device view when SimplyPrint is used

* Sending 3mf file to SimplyPrint when using BBL printers

* Fix file extension when uploading 3mf

* Prepare for large file uploading

* Implement chunk upload

* Fix file uploading exceeding content size

* Fix wrong field type

* Add `temp=true` to all chunk upload calls

* Add macro to enable test api

* Merge branch 'main' into dev/simplyprint-improve

* Fix another missing `temp=true`

* Add delete token

* Try fixing build error on *nix systems

* Merge branch 'main' into dev/simplyprint-improve

* Merge branch 'main' into dev/simplyprint-improve

* Merge remote-tracking branch 'remote/main' into dev/simplyprint-improve

# Conflicts:
#	src/slic3r/GUI/BackgroundSlicingProcess.cpp

* Move the `bbl_use_print_host_webui` option to print host dialog. Also make it a derived option of `print_host_webui` instead.

* Merge branch 'main' into dev/simplyprint-improve

# Conflicts:
#	src/slic3r/GUI/MainFrame.cpp
#	src/slic3r/GUI/Plater.cpp

* Merge branch 'main' into dev/simplyprint-improve

# Conflicts:
#	src/slic3r/GUI/Plater.cpp

* Use a more generic option instead of SimplyPrint specific

* Merge branch 'main' into dev/simplyprint-improve

* Merge branch 'main' into dev/simplyprint-improve
2024-06-21 19:48:00 +08:00
Noisyfox 54653ea316 Fix crash caused by wrong pointer used after VtxBuffer resized during 3d navigator rendering (#5719) 2024-06-16 02:16:54 +08:00
Noisyfox dbac0f2919 Better 3D navigator (#5620)
* Initial working impl of face labels

* Improve color

* Remove background
2024-06-15 12:17:57 +08:00
Noisyfox 2f265ef083 Fix issue that skip object won't trigger filament change when print-by-object is used (#5576)
* Fix issue that skip object won't trigger filament change when print-by-object is used
2024-06-04 20:00:56 +08:00
Noisyfox a877d642f6 Fix build with VS2022 17.10.x (#5575)
* Fix dep build with latest vs2022

* Fix opencv build with latest vs2022
2024-06-04 19:59:23 +08:00
Noisyfox ba3016bc3d Best effort for pixel perfect icon rendering (#4552)
* Make sure all icons & toolbars have sizes & locations in whole number pixels, so icons won't be blurry

* Make every size even so it scales well on screen
2024-05-18 22:49:03 +08:00
Noisyfox d69489c2a8 QoL: Add option to not show non-utf8 step warn (#5327)
* Add option to not show non-utf8 step warn
2024-05-18 21:18:46 +08:00
Noisyfox a5cb28d358 Fix plate list rendering (#5263)
* Fix issue that plate icons are rendered outsied the window

* Fix the mouse hover detection when list is scrolled

* Make sure the plate list do not overlap the 3d navigator
2024-05-05 21:48:03 +08:00
Noisyfox 38d4881643 Do layer height recognition on G3 moves as well (#4843)
* Do layer height recognition on G3 moves as well

* Merge branch 'main' into bugfox/scarf-joint-g3
2024-04-11 22:12:06 +08:00
Noisyfox ed14598eb1 Fix utf8 string on physical printer dialog (#4765) 2024-03-29 20:59:54 +08:00
Noisyfox 9f3bafb04e Fix 3rd party login issue on macOS (#4739)
* Fix use-after-free error

* Ignore http OPTIONS method

* Make sure response has sent before closing the http server
2024-03-28 23:07:10 +08:00
Noisyfox f36c22385b Fix issue that print host and webui settings are not properly reset (#4734)
Fix issue that print host and webui settings are not properly reset after switching from certain host type
2024-03-28 23:02:20 +08:00
Noisyfox d601e9d544 Fix issue that painter sphere is rendered at the wrong position (#4652) 2024-03-23 13:04:24 +08:00
Noisyfox e29bbac193 Support for SimplyPrint cloud integration (#4525)
* Make httpserver more generic and reusable

* Add OAuthJob

* Fix issue caused by the fact that the backing widget of the `TextCtrl` is no longer `wxTextCtrl`

* Implement login and token refresh

* Implement file upload

* Try fix build error

* Support BBL printers

* Show error message if user hasn't done OAuth

* Fix typo

* Update error message

* Disable unsupported options when SimplyPrint is selected
2024-03-23 10:08:48 +08:00
NoisyfoxandSoftFever 924a2b4551 Seam: use scarf joint to minimize seam visiblity (#3839)
* Remember z of previous layer

* Support travel to middle of the layer z

* Support sloped extrusion

* Implement sloped seam

* Reduce extra movements

* Don't clip loop if sloped seam is enabled

* Fix wipe

* Ensure `slope_max_segment_length`

* Add options

* Limit slope length to perimeter length

* Fix slope segmentation

* Rename the option to scarf joint seam

* Don't modify the slope option when turning on spiral vase

* Add a few suggestions when turnning on scarf joint

* Add option to add scarf joint to inner walls

* Apply seam gap at the end of the slope

* Add option to explicitly use the entire loop as scarf length

* Fix layer number

* Increase default scarf length to 20mm

* Better way of storing the global scarf state

* Better vase mode layer height recognition

* Move id should exclude seams

* Fix slope height with independent support layer height

* Fix linux build

* Allow controlling the scarf with modifier

* Scarf start height default to 0

* Allow enable scarf seam on contour only

* Fix type error

* Move the creation of sloped loop into ExtrusionEntity.cpp

* Fix error "vector too long"

* Detect seams properly

* The correct way of calculating the rate limit

* The correct way of calculating the rate limit

(cherry picked from commit 05961f7c98)

* Add pressure equalizer in print by object mode

* Remove the settings recommendation as it varies a lot depends on printer & filament

* Add a beta suffix

---------

Co-authored-by: SoftFever <softfeverever@gmail.com>
2024-03-02 23:25:02 +08:00
NoisyfoxandSoftFever ab1b0e0ebc Improve pressure equalizer so that it's less aggressive (#4264)
* The correct way of calculating the rate limit

* Add pressure equalizer in print by object mode

---------

Co-authored-by: SoftFever <softfeverever@gmail.com>
2024-03-02 23:10:01 +08:00
NoisyfoxandSoftFever bf4d59a676 QoL: 3D navigator (#4181)
* Initial integration of ImGuizmo

* Fix mouse capture

* Fix frame update

* Update face color

* Show current camera rotation

* Fix coord mapping

* Update camera rotation from 3d navigator

* Use orthographic

* Render axis

* Make the axis color lighter if at back

* Show axis label

* Fix linux build

* Move to separate method

* Refine

* Add option to show/hide 3d navigator

* Add license info

* Handle dpi scaling

---------

Co-authored-by: SoftFever <softfeverever@gmail.com>
2024-02-27 21:57:31 +08:00
Noisyfox 7e3b8007cb Allow exporting filament profiles for non-bbl printers (#4217)
Allow exporting non-bbl profiles
2024-02-25 15:40:55 +08:00
Noisyfox e4255b3c01 Allow specify wall directions (#4156)
* Add wall direction option

* Force wall direction if specified

* Format

* Rename default to auto
2024-02-23 20:45:56 +08:00
Noisyfox bff50a5fd8 Fix caucluation of rotation between two vectors during auto-orient (#4144)
* Properly extract rotation matrix

* Another attempt to fix auto-orient
2024-02-20 22:28:06 +08:00
Noisyfox a74a1d26fd Fix object list crash on click (#2823) (#4164) 2024-02-20 22:02:48 +08:00
Noisyfox 7e78f0d64f Fix move gizmo on parts (#4138) 2024-02-18 23:22:09 +08:00
2d140f92ff Various Emboss improvements from PS (#4039)
* Fix: invalid distance from surface when load from 3mf

Cherry-picked from prusa3d/PrusaSlicer@e1d9393e51

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

* Apply rotation angle given by style for new text object
Turn off feature 'use_surface' for new text object

Cherry-picked from prusa3d/PrusaSlicer@1cb156c815

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

* Store/Load align and per_glyph in Slicer.ini for text style

Cherry-picked from prusa3d/PrusaSlicer@fe16f5bdd1

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

* Store undo/redo snap after stop input-sliding

Cherry-picked from prusa3d/PrusaSlicer@fb4e4710e7

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

* Initialize SvgFile object in optional different way.

Cherry-picked from prusa3d/PrusaSlicer@0ff255eadc

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

* SPE-2103
Make snap-shot to undo/redo stack only on release slider

Connected with attributes:
Text/advanced(char gap, line gap, boldness, skew ratio)
SVG(size)

Also change range for Boldness. VRT font-Ascent.
(different font may have different slider value range)

Fix line gap (it was denied when per glyph was false)

Cherry-picked from prusa3d/PrusaSlicer@ee3546b186

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

---------

Co-authored-by: YFilip Sykala - NTB T15p <Filip.Sykala@Prusa3D.cz>
Co-authored-by: SoftFever <softfeverever@gmail.com>
2024-02-13 23:56:48 +08:00
Noisyfox 6d9b1d46d6 Fix issue with auto orient a scaled object. (#3904)
Partly revert 73ab032e82
2024-01-30 14:28:49 +00:00
NoisyfoxandSoftFever 73ab032e82 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-01-30 11:45:14 +00:00
Noisyfox 481fff494b Update the naming of the layer order option to intra-layer order (#3834) 2024-01-26 20:06:21 +08:00
NoisyfoxandYuSanka 55b6f2a588 QoL: Port profile value transfer on profile diff dialog from PrusaSlicer (#3737)
* DiffDialog: Implemented a transfer of options from one preset to another
Related to [Feature Request] #5384 - Copy values in Profile comparaison dialog

Cherry-picked from prusa3d/PrusaSlicer@0b8d7380ff

Co-authored-by: YuSanka <yusanka@gmail.com>

* Remove save button

* Sync with latest PS

* Use Orca button style

* Show tips about trasnfer disabled

---------

Co-authored-by: YuSanka <yusanka@gmail.com>
2024-01-24 15:18:52 +00:00
Noisyfox 6479bc8edc Retain mirror state when scaling using text input (#3643) (#3719) 2024-01-21 22:38:04 +08:00
Noisyfox 606438d61a QoL: Some UI improvements to Cut Gizmo (#3752)
* Cut: Add color legend for upper & lower part

* Cut: Make grabber larger
2024-01-21 22:15:03 +08:00
NoisyfoxandSoftFever 122c5cedd8 Add project info editor (#3754)
* Add button to add model info

* Initial impl of project info editor

* Add sidebar item to edit project info

* Add license selector

* Fix use of deprecated apis

* Fix license combox dark mode

* Add back button on project info editor screen

---------

Co-authored-by: SoftFever <softfeverever@gmail.com>
2024-01-21 22:13:37 +08:00
Noisyfox 33987d3e79 Add plate name edit btn (#3756) 2024-01-21 21:00:18 +08:00
NoisyfoxandSoftFever 26505e23ee Allow specifying print order within each layer (#3685)
* Allow reordering objects regardless of print seq

* Add option to control the layer print order

* Sort object by their order in object list instead of id

* Show print order when print order is the same as the object list

* Ensure the print order when print order is same as object list

* Update option name

---------

Co-authored-by: SoftFever <softfeverever@gmail.com>
2024-01-21 20:11:09 +08:00
Noisyfox b2708fb1f4 Fix constrainted scale (scale with ctrl key pressed) (#3717)
Fix constrainted scale (scale with ctrl key pressed) (#3699)
2024-01-17 23:59:48 +08:00
Noisyfox 418aca7186 Remember the sidebar size (#3700)
Store the current sidebar size using `best_size`
2024-01-17 23:36:43 +08:00
Noisyfox 1ffa32beed 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-01-15 22:19:50 +08:00
Noisyfox e713849fed 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>
(cherry picked from commit 002208fc8c)
2024-01-04 19:36:04 +08:00
Noisyfox 1ea33f0919 Fix NaN when adding negative part (#3423) (#3431) 2024-01-02 20:48:25 +08:00
Noisyfox 712478c240 Fix issue that "Per-glyph" option not working when UI is in Chinese (#3425) 2024-01-02 16:01:05 +08:00
Noisyfoxandliz.li 8fd4477110 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>
2024-01-01 13:45:53 +08:00
Noisyfox a8ade1554f Fix preview legend window size (#3363)
Fix issue that the legend window expands to all available horizontal space if scrollbar is displayed
2023-12-30 22:02:32 +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