mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 20:03:47 +00:00
Fix z-height calculation to correctly handle case when height == min_z
This commit is contained in:
@@ -101,12 +101,15 @@ static bool contour_extrusion_path(LayerRegion *region, const sla::IndexedMesh &
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (d > max_up + 0.03 || d < min_down) {
|
if (d < -height || d > max_up + 0.03) {
|
||||||
|
// this point is too far from the mesh edge, probably because this is not a top surface. Do not contour it.
|
||||||
d = 0;
|
d = 0;
|
||||||
} else {
|
|
||||||
if (d > max_up) {
|
|
||||||
d = max_up;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (d < min_down) {
|
||||||
|
d = min_down;
|
||||||
|
} else if (d > max_up) {
|
||||||
|
d = max_up;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_perimeter(path.role()) && d > 0) {
|
if (is_perimeter(path.role()) && d > 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user