Skip to content

Commit

Permalink
round up padding
Browse files Browse the repository at this point in the history
  • Loading branch information
Brig Bagley committed Jul 7, 2016
1 parent 590c4c2 commit 09ddf9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Groom/ShapeWorksGroom.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ void ShapeWorksGroom::auto_pad(int which) {
padder->SetInput(img);

// set the desired padding
auto pd = static_cast<unsigned long>(this->padding_ / 2);
auto pd = static_cast<unsigned long>((this->padding_ + 1) / 2);
unsigned long hipad[3] = { pd, pd, pd };
unsigned long lowpad[3] = { pd, pd, pd };

Expand Down

0 comments on commit 09ddf9c

Please sign in to comment.