mirror of https://github.com/CGAL/cgal
Remove ToS2::delete_faces()
This commit is contained in:
parent
7870a0299c
commit
cb2bcb9102
|
|
@ -91,7 +91,6 @@ public:
|
||||||
using Base::orientation_on_sphere;
|
using Base::orientation_on_sphere;
|
||||||
using Base::show_face;
|
using Base::show_face;
|
||||||
using Base::show_vertex;
|
using Base::show_vertex;
|
||||||
using Base::delete_faces;
|
|
||||||
using Base::compare;
|
using Base::compare;
|
||||||
using Base::VERTEX;
|
using Base::VERTEX;
|
||||||
using Base::EDGE;
|
using Base::EDGE;
|
||||||
|
|
@ -565,7 +564,9 @@ insert(const Point& p, Locate_type lt, Face_handle loc, int /*li*/)
|
||||||
|
|
||||||
v = tds().star_hole(edges.begin(), edges.end());
|
v = tds().star_hole(edges.begin(), edges.end());
|
||||||
v->set_point(p);
|
v->set_point(p);
|
||||||
delete_faces(faces.begin(), faces.end());
|
|
||||||
|
for(Face_handle f : faces)
|
||||||
|
tds().delete_face(f);
|
||||||
|
|
||||||
if(lt != FACE)
|
if(lt != FACE)
|
||||||
update_ghost_faces(v);
|
update_ghost_faces(v);
|
||||||
|
|
|
||||||
|
|
@ -377,16 +377,6 @@ public:
|
||||||
// IN/OUT
|
// IN/OUT
|
||||||
Vertex_handle file_input(std::istream& is);
|
Vertex_handle file_input(std::istream& is);
|
||||||
void file_output(std::ostream& os) const;
|
void file_output(std::ostream& os) const;
|
||||||
|
|
||||||
/*-----------------------TEMPLATE MEMBERS---------------------------*/
|
|
||||||
public:
|
|
||||||
template<class FaceIt>
|
|
||||||
void delete_faces(FaceIt face_begin, FaceIt face_end)
|
|
||||||
{
|
|
||||||
FaceIt fit = face_begin;
|
|
||||||
for(; fit!=face_end; ++fit)
|
|
||||||
tds().delete_face(*fit);
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// copy constructor duplicates vertices and faces
|
// copy constructor duplicates vertices and faces
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue