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:
parent
7830c8f8aa
commit
e3c2e513fa
@ -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"));
|
||||
|
Loading…
Reference in New Issue
Block a user