From 30c352f02532a85c6695aaa47c94bc5d741d74e9 Mon Sep 17 00:00:00 2001 From: Simon Giraudot Date: Wed, 25 Nov 2015 09:18:15 +0100 Subject: [PATCH] Bugfix: OFF reader should accept comments and empty lines --- Point_set_processing_3/include/CGAL/IO/read_off_points.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Point_set_processing_3/include/CGAL/IO/read_off_points.h b/Point_set_processing_3/include/CGAL/IO/read_off_points.h index 8261d6e2dba..3292385ab4a 100644 --- a/Point_set_processing_3/include/CGAL/IO/read_off_points.h +++ b/Point_set_processing_3/include/CGAL/IO/read_off_points.h @@ -95,6 +95,11 @@ read_off_points_and_normals( { iss.clear(); iss.str(line); + + // Ignore empty lines and comments + if (line.empty () || line[0] == '#') + continue; + lineNumber++; // Reads file signature on first line