mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-07-20 01:12:09 +00:00
Get libslic3r tests closer to passing
I can't get geometry tests to do anything useful. I've added extra output, but it hasn't helped me figure out why they don't work yet. That's also probably the last broken 3mf test doesn't work. The config tests were mostly broken because of config name changes. The placeholder_parser tests have some things that may-or-may-not still apply to Orca.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include "PrintConfig.hpp"
|
||||
#include "PrintConfigConstants.hpp"
|
||||
#include "ClipperUtils.hpp"
|
||||
#include "Config.hpp"
|
||||
#include "MaterialType.hpp"
|
||||
@@ -686,7 +687,7 @@ void PrintConfigDef::init_common_params()
|
||||
def->tooltip = L("Slicing height for each layer. Smaller layer height means more accurate and more printing time.");
|
||||
def->sidetext = "mm"; // milimeters, don't need translation
|
||||
def->min = 0;
|
||||
def->set_default_value(new ConfigOptionFloat(0.2));
|
||||
def->set_default_value(new ConfigOptionFloat(INITIAL_LAYER_HEIGHT));
|
||||
|
||||
def = this->add("printable_height", coFloat);
|
||||
def->label = L("Printable height");
|
||||
@@ -833,7 +834,7 @@ void PrintConfigDef::init_fff_params()
|
||||
def->category = L("Quality");
|
||||
def->tooltip = L("Detour to avoid traveling across walls, which may cause blobs on the surface.");
|
||||
def->mode = comAdvanced;
|
||||
def->set_default_value(new ConfigOptionBool(false));
|
||||
def->set_default_value(new ConfigOptionBool(INITIAL_REDUCE_CROSSING_WALL));
|
||||
|
||||
def = this->add("max_travel_detour_distance", coFloatOrPercent);
|
||||
def->label = L("Avoid crossing walls - Max detour length");
|
||||
@@ -4540,7 +4541,7 @@ void PrintConfigDef::init_fff_params()
|
||||
def->min = 0;
|
||||
def->max = 100;
|
||||
def->mode = comAdvanced;
|
||||
def->set_default_value(new ConfigOptionInt(0));
|
||||
def->set_default_value(new ConfigOptionInt(INITIAL_RAFT_LAYERS));
|
||||
|
||||
def = this->add("resolution", coFloat);
|
||||
def->label = L("Resolution");
|
||||
|
||||
@@ -510,7 +510,7 @@ CONFIG_OPTION_ENUM_DECLARE_STATIC_MAPS(PerimeterGeneratorType)
|
||||
|
||||
class DynamicPrintConfig;
|
||||
|
||||
// Defines each and every confiuration option of Slic3r, including the properties of the GUI dialogs.
|
||||
// Defines each and every configuration option of Slic3r, including the properties of the GUI dialogs.
|
||||
// Does not store the actual values, but defines default values.
|
||||
class PrintConfigDef : public ConfigDef
|
||||
{
|
||||
|
||||
7
src/libslic3r/PrintConfigConstants.hpp
Normal file
7
src/libslic3r/PrintConfigConstants.hpp
Normal file
@@ -0,0 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
// These are here just for unit testing.
|
||||
|
||||
#define INITIAL_LAYER_HEIGHT 0.2
|
||||
#define INITIAL_RAFT_LAYERS 0
|
||||
#define INITIAL_REDUCE_CROSSING_WALL false
|
||||
Reference in New Issue
Block a user