@@ -156,7 +156,8 @@ std::vector<LCC> lcc_data()
156
156
template <typename Graph>
157
157
struct Surface_fixture_1 {
158
158
Surface_fixture_1 () {
159
- assert (read_a_mesh (m, " data/fixture1.off" ));
159
+ const bool is_reading_successful = read_a_mesh (m, " data/fixture1.off" );
160
+ assert (is_reading_successful);
160
161
assert (CGAL::is_valid_polygon_mesh (m));
161
162
typename boost::property_map<Graph, CGAL::vertex_point_t >::const_type
162
163
pm = get (CGAL::vertex_point, const_cast <const Graph&>(m));
@@ -205,7 +206,8 @@ struct Surface_fixture_1 {
205
206
template <typename Graph>
206
207
struct Surface_fixture_2 {
207
208
Surface_fixture_2 () {
208
- assert (read_a_mesh (m, " data/fixture2.off" ));
209
+ const bool is_reading_successful = read_a_mesh (m, " data/fixture2.off" );
210
+ assert (is_reading_successful);
209
211
assert (CGAL::is_valid_polygon_mesh (m));
210
212
211
213
typename boost::property_map<Graph, CGAL::vertex_point_t >::const_type
@@ -266,7 +268,8 @@ struct Surface_fixture_2 {
266
268
template <typename Graph>
267
269
struct Surface_fixture_3 {
268
270
Surface_fixture_3 () {
269
- assert (read_a_mesh (m, " data/fixture3.off" ));
271
+ const bool is_reading_successful = read_a_mesh (m, " data/fixture3.off" );
272
+ assert (is_reading_successful);
270
273
assert (CGAL::is_valid_polygon_mesh (m));
271
274
272
275
typename boost::property_map<Graph, CGAL::vertex_point_t >::const_type
@@ -312,7 +315,8 @@ struct Surface_fixture_3 {
312
315
template <typename Graph>
313
316
struct Surface_fixture_4 {
314
317
Surface_fixture_4 () {
315
- assert (read_a_mesh (m, " data/fixture4.off" ));
318
+ const bool is_reading_successful = read_a_mesh (m, " data/fixture4.off" );
319
+ assert (is_reading_successful);
316
320
assert (CGAL::is_valid_polygon_mesh (m));
317
321
318
322
typename boost::property_map<Graph, CGAL::vertex_point_t >::const_type
@@ -347,7 +351,8 @@ struct Surface_fixture_4 {
347
351
template <typename Graph>
348
352
struct Surface_fixture_5 {
349
353
Surface_fixture_5 () {
350
- assert (read_a_mesh (m, " data/add_face_to_border.off" ));
354
+ const bool is_reading_successful = read_a_mesh (m, " data/add_face_to_border.off" );
355
+ assert (is_reading_successful);
351
356
assert (CGAL::is_valid_polygon_mesh (m));
352
357
353
358
typename boost::property_map<Graph, CGAL::vertex_point_t >::const_type
@@ -377,7 +382,8 @@ struct Surface_fixture_5 {
377
382
template <typename Graph>
378
383
struct Surface_fixture_6 {
379
384
Surface_fixture_6 () {
380
- assert (read_a_mesh (m, " data/quad.off" ));
385
+ const bool is_reading_successful = read_a_mesh (m, " data/quad.off" );
386
+ assert (is_reading_successful);
381
387
assert (CGAL::is_valid_polygon_mesh (m));
382
388
383
389
typename boost::graph_traits<Graph>::halfedge_descriptor h;
@@ -396,7 +402,8 @@ struct Surface_fixture_6 {
396
402
template <typename Graph>
397
403
struct Surface_fixture_7 {
398
404
Surface_fixture_7 () {
399
- assert (read_a_mesh (m, " data/cube.off" ));
405
+ const bool is_reading_successful = read_a_mesh (m, " data/cube.off" );
406
+ assert (is_reading_successful);
400
407
assert (CGAL::is_valid_polygon_mesh (m));
401
408
402
409
h = *(halfedges (m).first );
@@ -409,7 +416,8 @@ struct Surface_fixture_7 {
409
416
template <typename Graph>
410
417
struct Surface_fixture_8 {
411
418
Surface_fixture_8 () {
412
- assert (read_a_mesh (m, " data/fixture5.off" ));
419
+ const bool is_reading_successful = read_a_mesh (m, " data/fixture5.off" );
420
+ assert (is_reading_successful);
413
421
assert (CGAL::is_valid_polygon_mesh (m));
414
422
415
423
typename boost::property_map<Graph, CGAL::vertex_point_t >::const_type
0 commit comments