mirror of https://github.com/CGAL/cgal
Protect min/max with parentheses
Co-authored-by: Andreas Fabri <andreas.fabri@geometryfactory.com>
This commit is contained in:
parent
d65cd2d298
commit
3d71790cbc
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue