@@ -245,11 +245,11 @@ void triangulation::from_json(pt::ptree &mesh)
245
245
_max_z = std::max (_max_z,vertex[2 ]);
246
246
_min_z = std::min (_min_z,vertex[2 ]);
247
247
248
- _bounding_box.x_max = std::max (_bounding_box.x_max , vertex[0 ]);
249
- _bounding_box.x_min = std::min (_bounding_box.x_min , vertex[0 ]);
248
+ _bounding_box.x_max = std::fmax (_bounding_box.x_max , vertex[0 ]);
249
+ _bounding_box.x_min = std::fmin (_bounding_box.x_min , vertex[0 ]);
250
250
251
- _bounding_box.y_max = std::max (_bounding_box.y_max , vertex[1 ]);
252
- _bounding_box.y_min = std::min (_bounding_box.y_min , vertex[1 ]);
251
+ _bounding_box.y_max = std::fmax (_bounding_box.y_max , vertex[1 ]);
252
+ _bounding_box.y_min = std::fmin (_bounding_box.y_min , vertex[1 ]);
253
253
254
254
255
255
Vertex_handle Vh = this ->create_vertex ();
@@ -879,11 +879,11 @@ void triangulation::load_mesh_from_h5(const std::string& mesh_filename)
879
879
_max_z = std::max (_max_z, vertex[i][2 ]);
880
880
_min_z = std::min (_min_z, vertex[i][2 ]);
881
881
882
- _bounding_box.x_max = std::max (_bounding_box.x_max , vertex[i][0 ]);
883
- _bounding_box.x_min = std::min (_bounding_box.x_min , vertex[i][0 ]);
882
+ _bounding_box.x_max = std::fmax (_bounding_box.x_max , vertex[i][0 ]);
883
+ _bounding_box.x_min = std::fmin (_bounding_box.x_min , vertex[i][0 ]);
884
884
885
- _bounding_box.y_max = std::max (_bounding_box.y_max , vertex[i][1 ]);
886
- _bounding_box.y_min = std::min (_bounding_box.y_min , vertex[i][1 ]);
885
+ _bounding_box.y_max = std::fmax (_bounding_box.y_max , vertex[i][1 ]);
886
+ _bounding_box.y_min = std::fmin (_bounding_box.y_min , vertex[i][1 ]);
887
887
888
888
Vertex_handle Vh = this ->create_vertex ();
889
889
Vh->set_point (pt);
0 commit comments