Skip to content

Commit

Permalink
Avoid calculating boundary layer for cases without exposed perimeter.
Browse files Browse the repository at this point in the history
  • Loading branch information
nealkruis committed Mar 17, 2022
1 parent b43c4cb commit 09511bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libkiva/Instance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ void Instance::create() {
outputMap.push_back(Surface::ST_WALL_INT);
}

if (!foundation->useDetailedExposedPerimeter || !isConvex(foundation->polygon)) {
if (!foundation->useDetailedExposedPerimeter || !isConvex(foundation->polygon) ||
foundation->exposedFraction == 0) {
if (foundation->reductionStrategy == Foundation::RS_BOUNDARY) {
foundation->reductionStrategy = Foundation::RS_AP;
}
Expand Down

0 comments on commit 09511bc

Please sign in to comment.