mirror of https://github.com/CGAL/cgal
Bug fix draw Nef_3 (#7388)
_Please use the following template to help us managing pull requests._ ## Summary of Changes Draw only halffacet if(fc.is_shalfedge()). TODO: do we need to draw something if (fc.is_shalfloop()) ? ## Release Management * Affected package(s): Nef_3 * Issue(s) solved (if any): fix #7377
This commit is contained in:
commit
d0478493a0
|
|
@ -131,21 +131,23 @@ protected:
|
|||
++fc;
|
||||
while(fc!=f->facet_cycles_end())
|
||||
{
|
||||
se = SHalfedge_const_handle(fc);
|
||||
hc_start=se;
|
||||
hc_end=hc_start;
|
||||
CGAL_For_all(hc_start, hc_end) {
|
||||
Vertex_const_handle vh=hc_start->source()->center_vertex();
|
||||
viewer.add_point_in_face(vh->point(),
|
||||
viewer.get_vertex_normal(vh));
|
||||
if(fc.is_shalfedge())
|
||||
{
|
||||
se = SHalfedge_const_handle(fc);
|
||||
hc_start=se;
|
||||
hc_end=hc_start;
|
||||
CGAL_For_all(hc_start, hc_end) {
|
||||
Vertex_const_handle vh=hc_start->source()->center_vertex();
|
||||
viewer.add_point_in_face(vh->point(),
|
||||
viewer.get_vertex_normal(vh));
|
||||
}
|
||||
viewer.add_point_in_face(hc_start->source()->center_vertex()->point(),
|
||||
viewer.get_vertex_normal(hc_start->source()->center_vertex()));
|
||||
viewer.add_point_in_face(lastvh->point(),
|
||||
viewer.get_vertex_normal(lastvh));
|
||||
}
|
||||
viewer.add_point_in_face(hc_start->source()->center_vertex()->point(),
|
||||
viewer.get_vertex_normal(hc_start->source()->center_vertex()));
|
||||
viewer.add_point_in_face(lastvh->point(),
|
||||
viewer.get_vertex_normal(lastvh));
|
||||
++fc;
|
||||
}
|
||||
|
||||
viewer.face_end();
|
||||
facets_done[f]=true;
|
||||
n_faces++;
|
||||
|
|
|
|||
Loading…
Reference in New Issue