summaryrefslogtreecommitdiff
path: root/src/common/include/gudhi/Off_reader.h
diff options
context:
space:
mode:
authorvrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2015-06-12 10:47:38 +0000
committervrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2015-06-12 10:47:38 +0000
commit24ed9e6896b0aafcaeaf19e5d2970915282fa7b7 (patch)
tree2bc02bec0eac7e145d63a56fd7fd2ea0bf565db3 /src/common/include/gudhi/Off_reader.h
parent844d6205eb6705935417b0ab45b0c71230bd9ed6 (diff)
delaunay off reader/writer fix.
alpha complex algo seems ok. tests are Nok. git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/alphashapes@611 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: 37cea3b33d783a77a23fa3a54a1bee106508d981
Diffstat (limited to 'src/common/include/gudhi/Off_reader.h')
-rw-r--r--src/common/include/gudhi/Off_reader.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/include/gudhi/Off_reader.h b/src/common/include/gudhi/Off_reader.h
index e29218d8..618d1b4d 100644
--- a/src/common/include/gudhi/Off_reader.h
+++ b/src/common/include/gudhi/Off_reader.h
@@ -7,7 +7,7 @@
*
* Author(s): David Salinas
*
- * Copyright (C) 2014 INRIA Sophia Antipolis-Méditerranée (France)
+ * Copyright (C) 2014 INRIA Sophia Antipolis-Méditerranée (France)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -121,7 +121,7 @@ private:
if(!goto_next_uncomment_line(line)) return false;
std::istringstream iss(line);
- if(is_off_file){
+ if((is_off_file) && (!is_noff_file)) {
off_info_.dim = 3;
if(!(iss >> off_info_.num_vertices >> off_info_.num_faces >> off_info_.num_edges)){
std::cerr << "incorrect number of vertices/faces/edges\n";