Skip to content

Commit

Permalink
Protect min/max with parentheses
Browse files Browse the repository at this point in the history
Co-authored-by: Andreas Fabri <[email protected]>
  • Loading branch information
MaelRL and afabri authored Oct 5, 2023
1 parent d65cd2d commit 3d71790
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ int main(int argc, char** argv)
CGAL::Iso_cuboid_3<Kernel> bbox(CGAL::Polygon_mesh_processing::bbox(mesh));

// scale a bit the bounding box bbox, because the kernel is SC
bbox = { bbox.min() - 0.01 * (bbox.max() - bbox.min()),
bbox.max() + 0.01 * (bbox.max() - bbox.min()) };
bbox = { (bbox.min)() - 0.01 * ((bbox.max)() - (bbox.min)()),
(bbox.max)() + 0.01 * ((bbox.max)() - (bbox.min)()) };

std::cout << "Bbox: " << bbox << std::endl;

Expand Down

0 comments on commit 3d71790

Please sign in to comment.