mirror of https://github.com/CGAL/cgal
draw lcc
This commit is contained in:
parent
310ad8e40c
commit
f70a2d30cd
|
|
@ -64,8 +64,7 @@ void compute_face(const LCC& lcc,
|
||||||
CGAL::Graphics_scene& graphics_scene,
|
CGAL::Graphics_scene& graphics_scene,
|
||||||
const GSOptionsLCC& gso)
|
const GSOptionsLCC& gso)
|
||||||
{
|
{
|
||||||
if (!gso.are_faces_enabled() ||
|
if(!gso.are_faces_enabled() || !gso.draw_face(lcc, dh))
|
||||||
!gso.draw_face(lcc, dh))
|
|
||||||
{ return; }
|
{ return; }
|
||||||
|
|
||||||
// We fill only closed faces.
|
// We fill only closed faces.
|
||||||
|
|
@ -79,13 +78,9 @@ void compute_face(const LCC& lcc,
|
||||||
while (cur!=dh);
|
while (cur!=dh);
|
||||||
|
|
||||||
if (gso.colored_volume(lcc, voldh))
|
if (gso.colored_volume(lcc, voldh))
|
||||||
{
|
{ graphics_scene.face_begin(gso.volume_color(lcc, voldh)); }
|
||||||
graphics_scene.face_begin(gso.volume_color(lcc, voldh));
|
|
||||||
}
|
|
||||||
else if (gso.colored_face(lcc, dh))
|
else if (gso.colored_face(lcc, dh))
|
||||||
{
|
{ graphics_scene.face_begin(gso.face_color(lcc, dh)); }
|
||||||
graphics_scene.face_begin(gso.face_color(lcc, dh));
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{ graphics_scene.face_begin(); }
|
{ graphics_scene.face_begin(); }
|
||||||
|
|
||||||
|
|
@ -108,8 +103,7 @@ void compute_edge(const LCC& lcc,
|
||||||
CGAL::Graphics_scene& graphics_scene,
|
CGAL::Graphics_scene& graphics_scene,
|
||||||
const GSOptions& gso)
|
const GSOptions& gso)
|
||||||
{
|
{
|
||||||
if (!gso.are_edges_enabled() ||
|
if(!gso.are_edges_enabled() || !gso.draw_edge(lcc, dh))
|
||||||
!gso.draw_edge(lcc, dh))
|
|
||||||
{ return; }
|
{ return; }
|
||||||
|
|
||||||
const typename LCC::Point& p1=lcc.point(dh);
|
const typename LCC::Point& p1=lcc.point(dh);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue