Update default options for top-surface coloring

This commit is contained in:
sentientstardust
2026-05-28 23:34:26 +01:00
parent afbcab395f
commit 5ca2f24732
2 changed files with 10 additions and 8 deletions

View File

@@ -185,13 +185,13 @@ struct TextureMappingZone
static constexpr int DefaultTopSurfaceContoningStackLayers = 15;
static constexpr int MinTopSurfaceContoningPatternFilaments = 1;
static constexpr int MaxTopSurfaceContoningPatternFilaments = 20;
static constexpr int DefaultTopSurfaceContoningPatternFilaments = 4;
static constexpr int DefaultTopSurfaceContoningPatternFilaments = 5;
static constexpr float MinTopSurfaceContoningMinFeatureMm = 0.f;
static constexpr float MaxTopSurfaceContoningMinFeatureMm = 20.f;
static constexpr float DefaultTopSurfaceContoningMinFeatureMm = 0.f;
static constexpr bool DefaultTopSurfaceContoningColorLowerSurfaces = true;
static constexpr bool DefaultTopSurfaceContoningOnlyColorSurfaceInfill = true;
static constexpr bool DefaultTopSurfaceContoningOnlyOnePerimeterAroundShellInfill = false;
static constexpr bool DefaultTopSurfaceContoningOnlyOnePerimeterAroundShellInfill = true;
static constexpr bool DefaultTopSurfaceContoningReplaceTopPerimetersWithInfill = false;
static constexpr bool DefaultTopSurfaceContoningRecolorSurroundingPerimeters = false;
static constexpr int DefaultTopSurfaceContoningPerimeterMode = int(ContoningPerimeterDividedLine);
@@ -201,8 +201,8 @@ struct TextureMappingZone
static constexpr bool DefaultTopSurfaceContoningVariedInfillAnglesEnabled = false;
static constexpr bool DefaultTopSurfaceContoningBlueNoiseErrorDiffusionEnabled = false;
static constexpr bool DefaultTopSurfaceContoningSupersampledCellsEnabled = false;
static constexpr bool DefaultTopSurfaceContoningPolygonizeColorRegionsEnabled = false;
static constexpr int DefaultTopSurfaceContoningPolygonizeResolution = 2;
static constexpr bool DefaultTopSurfaceContoningPolygonizeColorRegionsEnabled = true;
static constexpr int DefaultTopSurfaceContoningPolygonizeResolution = 4;
static constexpr bool DefaultTopSurfaceContoningSurfaceAnchoredStacksEnabled = false;
static constexpr bool DefaultCompactOffsetMode = true;
static constexpr bool DefaultUseLegacyFixedColorMode = false;

View File

@@ -3181,8 +3181,9 @@ public:
}
bool top_surface_contoning_only_one_perimeter_around_shell_infill() const
{
return m_top_surface_contoning_only_one_perimeter_around_shell_infill_checkbox != nullptr &&
m_top_surface_contoning_only_one_perimeter_around_shell_infill_checkbox->GetValue();
return m_top_surface_contoning_only_one_perimeter_around_shell_infill_checkbox != nullptr ?
m_top_surface_contoning_only_one_perimeter_around_shell_infill_checkbox->GetValue() :
TextureMappingZone::DefaultTopSurfaceContoningOnlyOnePerimeterAroundShellInfill;
}
bool top_surface_contoning_only_color_surface_infill() const
{
@@ -3247,8 +3248,9 @@ public:
}
bool top_surface_contoning_polygonize_color_regions_enabled() const
{
return m_top_surface_contoning_polygonize_color_regions_checkbox != nullptr &&
m_top_surface_contoning_polygonize_color_regions_checkbox->GetValue();
return m_top_surface_contoning_polygonize_color_regions_checkbox != nullptr ?
m_top_surface_contoning_polygonize_color_regions_checkbox->GetValue() :
TextureMappingZone::DefaultTopSurfaceContoningPolygonizeColorRegionsEnabled;
}
int top_surface_contoning_polygonize_resolution() const
{