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:
tamasmeszaros 2021-02-25 15:49:50 +01:00
parent 7830c8f8aa
commit e3c2e513fa

View File

@ -79,11 +79,7 @@ static InteriorPtr generate_interior_verbose(const TriangleMesh & mesh,
double iso_surface = D;
auto narrowb = double(in_range);
if (closing_dist > .0) {
gridptr = redistance_grid(*gridptr, -(offset + D), narrowb, narrowb);
} else {
iso_surface = -offset;
}
gridptr = redistance_grid(*gridptr, -(offset + D), narrowb, narrowb);
if (ctl.stopcondition()) return {};
else ctl.statuscb(70, L("Hollowing"));