mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 11:53:48 +00:00
Do grid redistance even with zero closing distance
This prevents having a leftover grid with zero at the exterior boundary. Trimming expects zero at (offset + closing distance) inwards
This commit is contained in:
@@ -79,11 +79,7 @@ static InteriorPtr generate_interior_verbose(const TriangleMesh & mesh,
|
|||||||
|
|
||||||
double iso_surface = D;
|
double iso_surface = D;
|
||||||
auto narrowb = double(in_range);
|
auto narrowb = double(in_range);
|
||||||
if (closing_dist > .0) {
|
|
||||||
gridptr = redistance_grid(*gridptr, -(offset + D), narrowb, narrowb);
|
gridptr = redistance_grid(*gridptr, -(offset + D), narrowb, narrowb);
|
||||||
} else {
|
|
||||||
iso_surface = -offset;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (ctl.stopcondition()) return {};
|
if (ctl.stopcondition()) return {};
|
||||||
else ctl.statuscb(70, L("Hollowing"));
|
else ctl.statuscb(70, L("Hollowing"));
|
||||||
|
|||||||
Reference in New Issue
Block a user