// Copyright (c) 2004 Max-Planck-Institute Saarbruecken (Germany). // All rights reserved. // // This file is part of CGAL (www.cgal.org); you may redistribute it under // the terms of the Q Public License version 1.0. // See the file LICENSE.QPL distributed with CGAL. // // Licensees holding a valid commercial license may use this file in // accordance with the commercial license agreement provided with the software. // // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. // // $URL: svn+ssh://scm.gforge.inria.fr/svn/cgal/branches/CGAL-3.3-branch/Nef_S2/demo/Nef_S2/visualization.cpp $ // $Id: visualization.cpp 37003 2007-03-10 16:55:12Z spion $ // // // Author(s) : Peter Hachenberger #include #ifndef CGAL_USE_QT #include int main(int, char*){ std::cout << "Sorry, this demo needs QT..." << std::endl; return 0;} #else #include #include #include #include #include #include typedef CGAL::Gmpz RT; typedef CGAL::Homogeneous Kernel; typedef CGAL::Nef_polyhedron_S2 Nef_polyhedron_S2; int main(int argc, char* argv[]) { Nef_polyhedron_S2 S; create_random_Nef_S2(S,5); QApplication a(argc, argv); CGAL::Qt_widget_Nef_S2* w = new CGAL::Qt_widget_Nef_S2(S); a.setMainWidget(w); w->show(); return a.exec(); } #endif