Protect min/max with parentheses

Co-authored-by: Andreas Fabri <andreas.fabri@geometryfactory.com>
This commit is contained in:
Mael 2023-10-05 14:56:25 +02:00 committed by GitHub
parent d65cd2d298
commit 3d71790cbc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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;