Skip to content

Commit

Permalink
use statically filtered predicate
Browse files Browse the repository at this point in the history
  • Loading branch information
sloriot committed Jul 13, 2018
1 parent d3a8a07 commit 9028a2c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Convex_hull_3/include/CGAL/convex_hull_3.h
Expand Up @@ -358,8 +358,6 @@ find_visible_set(TDS_2& tds,
typedef typename Traits::Plane_3 Plane_3;
typedef typename TDS_2::Face_handle Face_handle;
typedef typename TDS_2::Vertex_handle Vertex_handle;
typename Traits::Has_on_positive_side_3 has_on_positive_side =
traits.has_on_positive_side_3_object();

std::vector<Vertex_handle> vertices;
vertices.reserve(10);
Expand All @@ -385,7 +383,8 @@ find_visible_set(TDS_2& tds,
// if haven't already seen this facet
if (f->info() == 0) {
f->info() = VISITED;
Plane_3 plane(f->vertex(0)->point(),f->vertex(2)->point(),f->vertex(1)->point());
Is_on_positive_side_of_plane_3<Traits> is_on_positive_side(
traits,f->vertex(0)->point(),f->vertex(2)->point(),f->vertex(1)->point());
int ind = f->index(*vis_it);
if ( !has_on_positive_side(plane, point) ){ // is visible
visible.push_back(f);
Expand Down

0 comments on commit 9028a2c

Please sign in to comment.