Update Surface_mesher/include/CGAL/IO/Complex_2_in_triangulation_3_to_medit.h

Co-authored-by: Laurent Rineau <Laurent.Rineau@cgal.org>
This commit is contained in:
Andreas Fabri 2020-09-10 16:36:54 +02:00 committed by GitHub
parent 90b6775351
commit 5e11fe8faa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -63,8 +63,9 @@ output_surface_facets_to_medit (std::ostream& os, const C2t3& c2t3)
vit != tr.finite_vertices_end();
++vit)
{
if(V.find(vit) != V.end()){
V[vit] = inum++;
auto it = V.find(vit);
if(it != V.end()){
*it = inum++;
Point p = static_cast<Point>(vit->point());
os << p.x() << " " << p.y() << " " << p.z() << " 0 \n";
}