mirror of https://github.com/CGAL/cgal
Use the Locate_type
This commit is contained in:
parent
90b6c43cde
commit
c6fe1f50b4
|
|
@ -1463,15 +1463,10 @@ void Scene::gl_draw_conflict() {
|
||||||
std::vector<Cell_handle> cic;
|
std::vector<Cell_handle> cic;
|
||||||
std::vector<Facet> boundary_facets;
|
std::vector<Facet> boundary_facets;
|
||||||
// Find the conflict region
|
// Find the conflict region
|
||||||
Cell_handle c = p3dt.locate(moving_point);
|
P3DT::Locate_type t;
|
||||||
Point _a(c->vertex(0)->point()),
|
int li, lj;
|
||||||
_b(c->vertex(1)->point()),
|
Cell_handle c = p3dt.locate(moving_point,t,li,lj);
|
||||||
_c(c->vertex(2)->point()),
|
if(t != P3DT::VERTEX)
|
||||||
_d(c->vertex(3)->point());
|
|
||||||
if(!( moving_point == _a
|
|
||||||
|| moving_point == _b
|
|
||||||
|| moving_point == _c
|
|
||||||
|| moving_point == _d))
|
|
||||||
p3dt.find_conflicts(moving_point,c,std::back_inserter(boundary_facets),std::back_inserter(cic),CGAL::Emptyset_iterator());
|
p3dt.find_conflicts(moving_point,c,std::back_inserter(boundary_facets),std::back_inserter(cic),CGAL::Emptyset_iterator());
|
||||||
|
|
||||||
std::vector<Projected_triangle> bfm;
|
std::vector<Projected_triangle> bfm;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue