Fix compilation error after one of my previous commits (about mirror_edge).

This commit is contained in:
Laurent Rineau 2010-12-01 10:51:04 +00:00
parent 32e833405c
commit d5c660832a
1 changed files with 6 additions and 4 deletions

View File

@ -68,7 +68,8 @@ protected:
*/
template <class V>
void set_color(const Edge &e, CGAL::Qt_widget &w, const V &) const {
void set_color(const Triangulation &,
const Edge &e, CGAL::Qt_widget &w, const V &) const {
if (!kdel_->has_event(e)) {
w << CGAL::Color(125,125,125);
} else if (kdel_->has_finite_event(e)){
@ -80,12 +81,13 @@ protected:
typedef Delaunay_triangulation_recent_edges_visitor_2<typename KDel::Triangulation> REV;
void set_color(const Edge &e, CGAL::Qt_widget &w,
void set_color(const Triangulation &tri,
const Edge &e, CGAL::Qt_widget &w,
const REV& ) const {
w << CGAL::LineWidth(2);
if (!kdel_->has_event(e)) {
w << CGAL::Color(125,125,125);
} else if (kdel_->visitor().contains(e) || kdel_->visitor().contains(TDS_helper::mirror_edge(e))) {
} else if (kdel_->visitor().contains(e) || kdel_->visitor().contains(tri.mirror_edge(e))) {
w<< CGAL::Color(0,255,0);
} else if (kdel_->has_finite_event(e)){
w << CGAL::Color(125,125,125);
@ -115,7 +117,7 @@ protected:
Static_point p0= cc(fit->first->vertex((fit->second+1)%3)->point());
Static_point p1= cc(fit->first->vertex((fit->second+2)%3)->point());
Static_segment ss(p0, p1);
set_color(*fit, w, kdel_->visitor());
set_color(tri, *fit, w, kdel_->visitor());
w << ss;
}
}