mirror of https://github.com/CGAL/cgal
Add halfedges in viewer which are segments.
This commit is contained in:
parent
97d44ba776
commit
d2eaef16d0
|
|
@ -21,7 +21,7 @@ if ( CGAL_FOUND )
|
||||||
|
|
||||||
if(CGAL_Qt5_FOUND )
|
if(CGAL_Qt5_FOUND )
|
||||||
target_link_libraries(vd_2_point_location PUBLIC CGAL::CGAL_Qt5)
|
target_link_libraries(vd_2_point_location PUBLIC CGAL::CGAL_Qt5)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -83,11 +83,12 @@ protected:
|
||||||
// face_end();
|
// face_end();
|
||||||
// }
|
// }
|
||||||
|
|
||||||
// void compute_edge(Halfedge_const_handle he)
|
void compute_edge(Halfedge_const_handle he)
|
||||||
// {
|
{
|
||||||
// add_segment(he->source()->point(),
|
if(he->is_segment())
|
||||||
// he->target()->point());
|
add_segment(he->source()->point(),
|
||||||
// }
|
he->target()->point());
|
||||||
|
}
|
||||||
|
|
||||||
void compute_vertex(Vertex_const_handle vh)
|
void compute_vertex(Vertex_const_handle vh)
|
||||||
{ add_point(vh->point()); }
|
{ add_point(vh->point()); }
|
||||||
|
|
@ -103,9 +104,9 @@ protected:
|
||||||
// { compute_face(it); }
|
// { compute_face(it); }
|
||||||
// }
|
// }
|
||||||
|
|
||||||
// for (typename V2::Halfedge_iterator it=v2.halfedges_begin();
|
for (typename V2::Halfedge_iterator it=v2.halfedges_begin();
|
||||||
// it!=v2.halfedges_end(); ++it)
|
it!=v2.halfedges_end(); ++it)
|
||||||
// { compute_edge(it); }
|
{ compute_edge(it); }
|
||||||
|
|
||||||
for (typename V2::Vertex_iterator it=v2.vertices_begin();
|
for (typename V2::Vertex_iterator it=v2.vertices_begin();
|
||||||
it!=v2.vertices_end(); ++it)
|
it!=v2.vertices_end(); ++it)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue