mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 16:57:53 -06: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
1 changed files with 3 additions and 3 deletions
|
@ -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 ?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue