Merge pull request #863 from lrineau/Mesh_3-fix_IO-lrineau

Fix the I/O of C3t3 in <CGAL/Mesh_vertex_base_3.h>
This commit is contained in:
Sebastien Loriot 2016-03-03 16:55:39 +01:00
commit 204e86e3cc
1 changed files with 4 additions and 4 deletions

View File

@ -272,11 +272,11 @@ operator>>(std::istream &is, Mesh_vertex_base_3<GT,MD,Vb>& v)
} else {
CGAL::read(is, dimension);
}
CGAL_assertion(dimension >= 0);
CGAL_assertion(dimension < 4);
typename Vertex::Index index =
internal::Mesh_3::Read_mesh_domain_index<MD>()(dimension, is);
v.set_dimension(dimension);
CGAL_assertion(v.in_dimension() >= -1);
CGAL_assertion(v.in_dimension() < 4);
typename Vertex::Index index =
internal::Mesh_3::Read_mesh_domain_index<MD>()(v.in_dimension(), is);
v.set_index(index);
return is;
}