mirror of https://github.com/CGAL/cgal
The size of argv array is now 2, ending with nullptr.
This commit is contained in:
parent
ee11c858b5
commit
2bbcabe71b
|
|
@ -78,7 +78,7 @@ void draw(const CGAL::Polygon_set_2<T, C>& aps2,
|
||||||
{
|
{
|
||||||
CGAL::Qt::init_ogl_context(4,3);
|
CGAL::Qt::init_ogl_context(4,3);
|
||||||
int argc=1;
|
int argc=1;
|
||||||
const char* argv[1]={"t2_viewer"};
|
const char* argv[2]={"t2_viewer", nullptr};
|
||||||
QApplication app(argc,const_cast<char**>(argv));
|
QApplication app(argc,const_cast<char**>(argv));
|
||||||
SimplePolygonSet2ViewerQt<CGAL::Polygon_set_2<T, C> >
|
SimplePolygonSet2ViewerQt<CGAL::Polygon_set_2<T, C> >
|
||||||
mainwindow(app.activeWindow(), aps2, title);
|
mainwindow(app.activeWindow(), aps2, title);
|
||||||
|
|
|
||||||
|
|
@ -408,7 +408,7 @@ void draw(const CGAL_LCC_TYPE& alcc,
|
||||||
{
|
{
|
||||||
CGAL::Qt::init_ogl_context(4,3);
|
CGAL::Qt::init_ogl_context(4,3);
|
||||||
int argc=1;
|
int argc=1;
|
||||||
const char* argv[1]={"lccviewer"};
|
const char* argv[2]={"lccviewer", nullptr};
|
||||||
QApplication app(argc,const_cast<char**>(argv));
|
QApplication app(argc,const_cast<char**>(argv));
|
||||||
SimpleLCCViewerQt<CGAL_LCC_TYPE, DrawingFunctorLCC>
|
SimpleLCCViewerQt<CGAL_LCC_TYPE, DrawingFunctorLCC>
|
||||||
mainwindow(app.activeWindow(), &alcc, title, nofill, drawing_functor);
|
mainwindow(app.activeWindow(), &alcc, title, nofill, drawing_functor);
|
||||||
|
|
|
||||||
|
|
@ -256,7 +256,7 @@ void draw(const CGAL_NEF3_TYPE &anef,
|
||||||
{
|
{
|
||||||
CGAL::Qt::init_ogl_context(4,3);
|
CGAL::Qt::init_ogl_context(4,3);
|
||||||
int argc = 1;
|
int argc = 1;
|
||||||
const char *argv[1] = {"nef_polyhedron_viewer"};
|
const char *argv[2] = {"nef_polyhedron_viewer", nullptr};
|
||||||
QApplication app(argc, const_cast<char **>(argv));
|
QApplication app(argc, const_cast<char **>(argv));
|
||||||
DefaultColorFunctorNefPolyhedron fcolor;
|
DefaultColorFunctorNefPolyhedron fcolor;
|
||||||
SimpleNefPolyhedronViewerQt<CGAL_NEF3_TYPE,
|
SimpleNefPolyhedronViewerQt<CGAL_NEF3_TYPE,
|
||||||
|
|
|
||||||
|
|
@ -263,7 +263,7 @@ void draw(const CGAL_P2T2_TYPE& ap2t2,
|
||||||
{
|
{
|
||||||
CGAL::Qt::init_ogl_context(4,3);
|
CGAL::Qt::init_ogl_context(4,3);
|
||||||
int argc=1;
|
int argc=1;
|
||||||
const char* argv[1]={"p2t2_viewer"};
|
const char* argv[2]={"p2t2_viewer", nullptr};
|
||||||
QApplication app(argc,const_cast<char**>(argv));
|
QApplication app(argc,const_cast<char**>(argv));
|
||||||
DefaultColorFunctorP2T2 fcolor;
|
DefaultColorFunctorP2T2 fcolor;
|
||||||
SimplePeriodic2Triangulation2ViewerQt<CGAL_P2T2_TYPE,
|
SimplePeriodic2Triangulation2ViewerQt<CGAL_P2T2_TYPE,
|
||||||
|
|
|
||||||
|
|
@ -104,7 +104,7 @@ void draw(const Point_set_3<P, V>& apointset,
|
||||||
{
|
{
|
||||||
CGAL::Qt::init_ogl_context(4,3);
|
CGAL::Qt::init_ogl_context(4,3);
|
||||||
int argc=1;
|
int argc=1;
|
||||||
const char* argv[1]={"point_set_viewer"};
|
const char* argv[2]={"point_set_viewer", nullptr};
|
||||||
QApplication app(argc,const_cast<char**>(argv));
|
QApplication app(argc,const_cast<char**>(argv));
|
||||||
SimplePointSetViewerQt<Point_set_3<P, V> > mainwindow(app.activeWindow(),
|
SimplePointSetViewerQt<Point_set_3<P, V> > mainwindow(app.activeWindow(),
|
||||||
apointset,
|
apointset,
|
||||||
|
|
|
||||||
|
|
@ -125,7 +125,7 @@ void draw(const CGAL::Polygon_2<T, C>& ap2,
|
||||||
{
|
{
|
||||||
CGAL::Qt::init_ogl_context(4,3);
|
CGAL::Qt::init_ogl_context(4,3);
|
||||||
int argc=1;
|
int argc=1;
|
||||||
const char* argv[1]={"t2_viewer"};
|
const char* argv[2]={"t2_viewer", nullptr};
|
||||||
QApplication app(argc,const_cast<char**>(argv));
|
QApplication app(argc,const_cast<char**>(argv));
|
||||||
SimplePolygon2ViewerQt<CGAL::Polygon_2<T, C> >
|
SimplePolygon2ViewerQt<CGAL::Polygon_2<T, C> >
|
||||||
mainwindow(app.activeWindow(), ap2, title);
|
mainwindow(app.activeWindow(), ap2, title);
|
||||||
|
|
|
||||||
|
|
@ -145,7 +145,7 @@ void draw(const CGAL::Polygon_with_holes_2<T, C>& ap2,
|
||||||
{
|
{
|
||||||
CGAL::Qt::init_ogl_context(4,3);
|
CGAL::Qt::init_ogl_context(4,3);
|
||||||
int argc=1;
|
int argc=1;
|
||||||
const char* argv[1]={"t2_viewer"};
|
const char* argv[2]={"t2_viewer", nullptr};
|
||||||
QApplication app(argc,const_cast<char**>(argv));
|
QApplication app(argc,const_cast<char**>(argv));
|
||||||
SimplePolygonWithHoles2ViewerQt<CGAL::Polygon_with_holes_2<T, C> >
|
SimplePolygonWithHoles2ViewerQt<CGAL::Polygon_with_holes_2<T, C> >
|
||||||
mainwindow(app.activeWindow(), ap2, title);
|
mainwindow(app.activeWindow(), ap2, title);
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,7 @@ void draw(const CGAL_POLY_TYPE& apoly,
|
||||||
{
|
{
|
||||||
CGAL::Qt::init_ogl_context(4,3);
|
CGAL::Qt::init_ogl_context(4,3);
|
||||||
int argc=1;
|
int argc=1;
|
||||||
const char* argv[1]={"polyhedron_viewer"};
|
const char* argv[2]={"polyhedron_viewer", nullptr};
|
||||||
QApplication app(argc,const_cast<char**>(argv));
|
QApplication app(argc,const_cast<char**>(argv));
|
||||||
SimpleFaceGraphViewerQt
|
SimpleFaceGraphViewerQt
|
||||||
mainwindow(app.activeWindow(), apoly, title, nofill);
|
mainwindow(app.activeWindow(), apoly, title, nofill);
|
||||||
|
|
|
||||||
|
|
@ -162,7 +162,7 @@ void draw(const CGAL_SS_TYPE& ass2,
|
||||||
if (!cgal_test_suite)
|
if (!cgal_test_suite)
|
||||||
{
|
{
|
||||||
int argc=1;
|
int argc=1;
|
||||||
const char* argv[1]={"ss2_viewer"};
|
const char* argv[2]={"ss2_viewer", nullptr};
|
||||||
QApplication app(argc,const_cast<char**>(argv));
|
QApplication app(argc,const_cast<char**>(argv));
|
||||||
DefaultColorFunctorSS2 fcolor;
|
DefaultColorFunctorSS2 fcolor;
|
||||||
SimpleStraightSkeleton2ViewerQt<CGAL_SS_TYPE, DefaultColorFunctorSS2>
|
SimpleStraightSkeleton2ViewerQt<CGAL_SS_TYPE, DefaultColorFunctorSS2>
|
||||||
|
|
|
||||||
|
|
@ -263,7 +263,7 @@ void draw_surface_mesh_with_small_faces(CGAL::Surface_mesh<K>& amesh)
|
||||||
if (!cgal_test_suite)
|
if (!cgal_test_suite)
|
||||||
{
|
{
|
||||||
int argc=1;
|
int argc=1;
|
||||||
const char* argv[1]={"surface_mesh_viewer"};
|
const char* argv[2]={"surface_mesh_viewer", nullptr};
|
||||||
QApplication app(argc,const_cast<char**>(argv));
|
QApplication app(argc,const_cast<char**>(argv));
|
||||||
SimpleSurfaceMeshWithSmallFacesViewerQt<CGAL::Surface_mesh<K>>
|
SimpleSurfaceMeshWithSmallFacesViewerQt<CGAL::Surface_mesh<K>>
|
||||||
mainwindow(app.activeWindow(), amesh);
|
mainwindow(app.activeWindow(), amesh);
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,7 @@ void draw(const Surface_mesh<K>& amesh,
|
||||||
{
|
{
|
||||||
CGAL::Qt::init_ogl_context(4,3);
|
CGAL::Qt::init_ogl_context(4,3);
|
||||||
int argc=1;
|
int argc=1;
|
||||||
const char* argv[1]={"surface_mesh_viewer"};
|
const char* argv[2]={"surface_mesh_viewer", nullptr};
|
||||||
QApplication app(argc,const_cast<char**>(argv));
|
QApplication app(argc,const_cast<char**>(argv));
|
||||||
SimpleFaceGraphViewerQt mainwindow(app.activeWindow(), amesh, title,
|
SimpleFaceGraphViewerQt mainwindow(app.activeWindow(), amesh, title,
|
||||||
nofill);
|
nofill);
|
||||||
|
|
|
||||||
|
|
@ -147,7 +147,7 @@ void draw(const CGAL_T2_TYPE& at2,
|
||||||
{
|
{
|
||||||
CGAL::Qt::init_ogl_context(4,3);
|
CGAL::Qt::init_ogl_context(4,3);
|
||||||
int argc=1;
|
int argc=1;
|
||||||
const char* argv[1]={"t2_viewer"};
|
const char* argv[2]={"t2_viewer", nullptr};
|
||||||
QApplication app(argc,const_cast<char**>(argv));
|
QApplication app(argc,const_cast<char**>(argv));
|
||||||
DefaultColorFunctorT2 fcolor;
|
DefaultColorFunctorT2 fcolor;
|
||||||
SimpleTriangulation2ViewerQt<CGAL_T2_TYPE, DefaultColorFunctorT2>
|
SimpleTriangulation2ViewerQt<CGAL_T2_TYPE, DefaultColorFunctorT2>
|
||||||
|
|
|
||||||
|
|
@ -153,7 +153,7 @@ void draw(const CGAL_T3_TYPE& at3,
|
||||||
{
|
{
|
||||||
CGAL::Qt::init_ogl_context(4,3);
|
CGAL::Qt::init_ogl_context(4,3);
|
||||||
int argc=1;
|
int argc=1;
|
||||||
const char* argv[1]={"t3_viewer"};
|
const char* argv[2]={"t3_viewer", nullptr};
|
||||||
QApplication app(argc,const_cast<char**>(argv));
|
QApplication app(argc,const_cast<char**>(argv));
|
||||||
DefaultColorFunctorT3 fcolor;
|
DefaultColorFunctorT3 fcolor;
|
||||||
SimpleTriangulation3ViewerQt<CGAL_T3_TYPE, DefaultColorFunctorT3>
|
SimpleTriangulation3ViewerQt<CGAL_T3_TYPE, DefaultColorFunctorT3>
|
||||||
|
|
|
||||||
|
|
@ -319,7 +319,7 @@ void draw(const CGAL_VORONOI_TYPE &av2,
|
||||||
if (!cgal_test_suite) {
|
if (!cgal_test_suite) {
|
||||||
CGAL::Qt::init_ogl_context(4,3);
|
CGAL::Qt::init_ogl_context(4,3);
|
||||||
int argc = 1;
|
int argc = 1;
|
||||||
const char *argv[1] = {"voronoi_2_viewer"};
|
const char *argv[2] = {"voronoi_2_viewer", nullptr};
|
||||||
QApplication app(argc, const_cast<char **>(argv));
|
QApplication app(argc, const_cast<char **>(argv));
|
||||||
DefaultColorFunctorV2 fcolor;
|
DefaultColorFunctorV2 fcolor;
|
||||||
SimpleVoronoiDiagram2ViewerQt<CGAL_VORONOI_TYPE, DefaultColorFunctorV2>
|
SimpleVoronoiDiagram2ViewerQt<CGAL_VORONOI_TYPE, DefaultColorFunctorV2>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue