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:
Laurent Rineau 2023-04-25 12:18:08 +02:00 committed by GitHub
commit d0478493a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 12 deletions

View File

@ -130,6 +130,8 @@ protected:
// Now iterate through holes of the face // Now iterate through holes of the face
++fc; ++fc;
while(fc!=f->facet_cycles_end()) while(fc!=f->facet_cycles_end())
{
if(fc.is_shalfedge())
{ {
se = SHalfedge_const_handle(fc); se = SHalfedge_const_handle(fc);
hc_start=se; hc_start=se;
@ -143,9 +145,9 @@ protected:
viewer.get_vertex_normal(hc_start->source()->center_vertex())); viewer.get_vertex_normal(hc_start->source()->center_vertex()));
viewer.add_point_in_face(lastvh->point(), viewer.add_point_in_face(lastvh->point(),
viewer.get_vertex_normal(lastvh)); viewer.get_vertex_normal(lastvh));
}
++fc; ++fc;
} }
viewer.face_end(); viewer.face_end();
facets_done[f]=true; facets_done[f]=true;
n_faces++; n_faces++;