Add halfedges in viewer which are segments.

This commit is contained in:
Jasmeet Singh 2019-06-03 19:05:24 -07:00
parent 97d44ba776
commit d2eaef16d0
2 changed files with 10 additions and 9 deletions

View File

@ -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()

View File

@ -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)