mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-14 05:45:55 +08:00
Limit upper tolerance in Gyroid
Do not reduce resolution more than necessary when using larger nozzles and/or higher layer heights.
This commit is contained in:
parent
1a84642153
commit
f8490fb4e0
@ -106,9 +106,9 @@ static Polylines make_gyroid_waves(double gridZ, double density_adjusted, double
|
|||||||
{
|
{
|
||||||
const double scaleFactor = scale_(line_spacing) / density_adjusted;
|
const double scaleFactor = scale_(line_spacing) / density_adjusted;
|
||||||
|
|
||||||
// tolerance (in scaled units)
|
// tolerance (in scaled units) - note: clamp the maximum tolerance
|
||||||
// TODO: should consider layer thickness
|
// as there's no benefit to reduce the definition with large nozzles
|
||||||
const double tolerance = line_spacing / 2 / unscale<double>(scaleFactor);
|
const double tolerance = std::min(line_spacing, 0.4) / 2 / unscale<double>(scaleFactor);
|
||||||
|
|
||||||
//scale factor for 5% : 8 712 388
|
//scale factor for 5% : 8 712 388
|
||||||
// 1z = 10^-6 mm ?
|
// 1z = 10^-6 mm ?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user