mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-15 13:42:40 -07: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:
@@ -106,9 +106,9 @@ static Polylines make_gyroid_waves(double gridZ, double density_adjusted, double
|
||||
{
|
||||
const double scaleFactor = scale_(line_spacing) / density_adjusted;
|
||||
|
||||
// tolerance (in scaled units)
|
||||
// TODO: should consider layer thickness
|
||||
const double tolerance = line_spacing / 2 / unscale<double>(scaleFactor);
|
||||
// tolerance (in scaled units) - note: clamp the maximum tolerance
|
||||
// as there's no benefit to reduce the definition with large nozzles
|
||||
const double tolerance = std::min(line_spacing, 0.4) / 2 / unscale<double>(scaleFactor);
|
||||
|
||||
//scale factor for 5% : 8 712 388
|
||||
// 1z = 10^-6 mm ?
|
||||
|
||||
Reference in New Issue
Block a user