mirror of https://github.com/CGAL/cgal
example requires qt
This commit is contained in:
parent
8710dbe861
commit
d13b856c20
|
|
@ -6,7 +6,10 @@
|
||||||
#include <CGAL/draw_point_set_3.h>
|
#include <CGAL/draw_point_set_3.h>
|
||||||
#include <CGAL/Graphics_scene_options.h>
|
#include <CGAL/Graphics_scene_options.h>
|
||||||
#include <CGAL/Qt/Basic_viewer.h>
|
#include <CGAL/Qt/Basic_viewer.h>
|
||||||
|
|
||||||
|
#ifdef CGAL_USE_BASIC_VIEWER
|
||||||
#include <QMainWindow>
|
#include <QMainWindow>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
@ -52,6 +55,7 @@ int main(void)
|
||||||
CGAL::add_to_graphics_scene(output_mesh, scene2);
|
CGAL::add_to_graphics_scene(output_mesh, scene2);
|
||||||
|
|
||||||
/// (2) Qt code that create windows, add them in a layout, and create app.
|
/// (2) Qt code that create windows, add them in a layout, and create app.
|
||||||
|
#ifdef CGAL_USE_BASIC_VIEWER
|
||||||
|
|
||||||
#if defined(CGAL_TEST_SUITE)
|
#if defined(CGAL_TEST_SUITE)
|
||||||
bool cgal_test_suite=true;
|
bool cgal_test_suite=true;
|
||||||
|
|
@ -81,6 +85,7 @@ int main(void)
|
||||||
|
|
||||||
mainWindow->show();
|
mainWindow->show();
|
||||||
app.exec();
|
app.exec();
|
||||||
|
#endif
|
||||||
|
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue