mirror of https://github.com/CGAL/cgal
Merge pull request #4870 from lrineau/Mesh_3-fix_warning-GF
Mesh_3: fix a warning
This commit is contained in:
commit
e293161a43
|
|
@ -1224,8 +1224,8 @@ private:
|
|||
if(update_c3t3)
|
||||
{
|
||||
// Update status in c3t3
|
||||
if(surface != boost::none)
|
||||
c3t3_.add_to_complex(facet, surface.get());
|
||||
if((bool)surface)
|
||||
c3t3_.add_to_complex(facet, *surface);
|
||||
else
|
||||
c3t3_.remove_from_complex(facet);
|
||||
}
|
||||
|
|
@ -1246,7 +1246,7 @@ private:
|
|||
}
|
||||
}
|
||||
|
||||
return surface;
|
||||
return surface ? surface : Surface_patch();
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -2054,7 +2054,7 @@ private:
|
|||
true); /* update surface centers */
|
||||
// false means "do not update the c3t3"
|
||||
if ( c3t3_.is_in_complex(*fit) != (bool)sp ||
|
||||
((bool)sp && !(c3t3_.surface_patch_index(*fit) == sp.get()) ) )
|
||||
((bool)sp && !(c3t3_.surface_patch_index(*fit) == *sp) ) )
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue