mirror of https://github.com/CGAL/cgal
update draw voronoi 2
This commit is contained in:
parent
4f80fdfe82
commit
cb42067263
|
|
@ -371,8 +371,6 @@ void add_to_graphics_scene(const CGAL_VORONOI_TYPE& v2,
|
|||
add_to_graphics_scene(v2, graphics_scene, gs_options);
|
||||
}
|
||||
|
||||
#if defined(CGAL_USE_BASIC_VIEWER_QT)
|
||||
|
||||
// Specialization of draw function.
|
||||
template<class DG, class AT, class AP, class GSOptions>
|
||||
void draw(const CGAL_VORONOI_TYPE& av2,
|
||||
|
|
@ -382,6 +380,10 @@ void draw(const CGAL_VORONOI_TYPE& av2,
|
|||
CGAL::Graphics_scene buffer;
|
||||
add_to_graphics_scene(av2, buffer, gs_options);
|
||||
|
||||
CGAL_USE(title);
|
||||
|
||||
#if defined(CGAL_USE_BASIC_VIEWER_QT)
|
||||
|
||||
CGAL::Qt::QApplication_and_basic_viewer app(buffer, title);
|
||||
if(app)
|
||||
{
|
||||
|
|
@ -435,6 +437,7 @@ void draw(const CGAL_VORONOI_TYPE& av2,
|
|||
// Then we run the app
|
||||
app.run();
|
||||
}
|
||||
#endif // CGAL_USE_BASIC_VIEWER_QT
|
||||
}
|
||||
|
||||
template<class DG, class AT, class AP>
|
||||
|
|
@ -449,8 +452,6 @@ void draw(const CGAL_VORONOI_TYPE& av2,
|
|||
draw(av2, gs_options, title);
|
||||
}
|
||||
|
||||
#endif // CGAL_USE_BASIC_VIEWER_QT
|
||||
|
||||
#undef CGAL_VORONOI_TYPE
|
||||
|
||||
} // End namespace CGAL
|
||||
|
|
|
|||
Loading…
Reference in New Issue