OrcaSlicer/cmake/modules
Maeyanie bb30999673
Add support for Draco (.drc) format (#10681)
* Add read support for Google's Draco (.drc) format.

* Fix build on Linux

* Use boost instead of fstat.

* Switch to boost memory-mapped file to save RAM and potentially improve performance.

* Trim trailing whitespace.

* Initial Draco write support.

Currently always exports with 16-bit precision and speed 0 (best compression).
The back-end function does have arguments to specify them, it's just not hooked into the GUI.

* Add Draco to the About dialogue.

* Fix Linux compile (hopefully)

* Add an option to associate DRC files on Windows.

* Implement a Preferences option to set Draco position quantization bits

* Update src/slic3r/GUI/Preferences.cpp

Co-authored-by: Ian Bassi <ian.bassi@outlook.com>

* Some slight changes to ianalexis's suggestion.

* Implement a create_item_spinctrl() function for numeric inputs, and use that instead of create_item_input().

* Move "bits" to inside the spinctrl box.

* Refactor following yw4z's feedback

* Update src/slic3r/GUI/Preferences.cpp

Co-authored-by: Ian Bassi <ian.bassi@outlook.com>

* Change to 0 bits as the default setting for Draco export precision.

* Change to a lossy checkbox and a bits field with a range of 8-30.

* Proper SpinInput code from yw4z

* Revert "Proper SpinInput code from yw4z"

This reverts commit 7e9c85f31a.

* Revert "Change to a lossy checkbox and a bits field with a range of 8-30."

This reverts commit d642c9bcc0.

* Redo preferences based on SoftFever's feedback

* Refactor to minimize code duplication

* Fix padding

* Improve Draco export quality level tooltip clarity

Clarify that 0 means lossless compression (not uncompressed),
document the valid lossy range (8-30), and better explain the
tradeoff between file size and geometric detail.

---------

Co-authored-by: SoftFever <softfeverever@gmail.com>
Co-authored-by: Noisyfox <timemanager.rick@gmail.com>
Co-authored-by: Ian Bassi <ian.bassi@outlook.com>
2026-02-06 18:27:17 +08:00
..
bin2h.cmake Add the full source of BambuStudio 2022-07-15 23:42:08 +08:00
CheckAtomic.cmake Add the full source of BambuStudio 2022-07-15 23:42:08 +08:00
FindAlienWx.cmake Add the full source of BambuStudio 2022-07-15 23:42:08 +08:00
Findcereal.cmake Add the full source of BambuStudio 2022-07-15 23:42:08 +08:00
FindCURL.cmake Add the full source of BambuStudio 2022-07-15 23:42:08 +08:00
FindDBus.cmake Add the full source of BambuStudio 2022-07-15 23:42:08 +08:00
FindDraco.cmake Add support for Draco (.drc) format (#10681) 2026-02-06 18:27:17 +08:00
FindEigen3.cmake Add the full source of BambuStudio 2022-07-15 23:42:08 +08:00
FindGLEW.cmake Fix various typos in source documentation (#11553) 2026-01-21 09:19:25 -03:00
FindGTK3.cmake support linux build for wxWidgets 2022-08-26 09:25:59 +08:00
Findlibnoise.cmake Better CMake Defaults (#10294) 2025-10-25 22:05:09 +08:00
FindNLopt.cmake Better CMake Defaults (#10294) 2025-10-25 22:05:09 +08:00
FindOpenVDB.cmake Refactor folder (#10475) 2025-08-22 20:02:26 +08:00
FindPackageHandleStandardArgs_SLIC3R.cmake Add the full source of BambuStudio 2022-07-15 23:42:08 +08:00
FindPackageMessage_SLIC3R.cmake Add the full source of BambuStudio 2022-07-15 23:42:08 +08:00
FindPerlEmbed.cmake Add the full source of BambuStudio 2022-07-15 23:42:08 +08:00
FindTBB.cmake fix vs2022 deps 2023-07-16 10:58:18 +08:00
FindTBB.cmake.in Fix various typos in source documentation (#11553) 2026-01-21 09:19:25 -03:00
LibFindMacros.cmake Add the full source of BambuStudio 2022-07-15 23:42:08 +08:00
MacOSXBundleInfo.plist.in Url update: SoftFever/OrcaSlicer -> OrcaSlicer/OrcaSlicer (#11371) 2025-11-17 11:17:54 +08:00
OpenVDBUtils.cmake Add the full source of BambuStudio 2022-07-15 23:42:08 +08:00
PrecompiledHeader.cmake Add the full source of BambuStudio 2022-07-15 23:42:08 +08:00
SelectLibraryConfigurations_SLIC3R.cmake Add the full source of BambuStudio 2022-07-15 23:42:08 +08:00