// Copyright (c) 2018-2020 ETH Zurich (Switzerland). // All rights reserved. // // This file is part of CGAL (www.cgal.org). // // $URL: https://github.com/CGAL/cgal/blob/v5.2/Polyhedron/include/CGAL/draw_polyhedron.h $ // $Id: draw_polyhedron.h 6ebe6d6 2020-07-24T13:09:53+02:00 Laurent Rineau // SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-Commercial // // Author(s) : Guillaume Damiand #ifndef CGAL_DRAW_POLYHEDRON_H #define CGAL_DRAW_POLYHEDRON_H #include #include #ifdef CGAL_USE_BASIC_VIEWER #include #include #include namespace CGAL { // Specialization of draw function. #define CGAL_POLY_TYPE CGAL::Polyhedron_3 \ template class T_HDS, class Alloc> void draw(const CGAL_POLY_TYPE& apoly, const char* title="Polyhedron Basic Viewer", bool nofill=false) { #if defined(CGAL_TEST_SUITE) bool cgal_test_suite=true; #else bool cgal_test_suite=qEnvironmentVariableIsSet("CGAL_TEST_SUITE"); #endif if (!cgal_test_suite) { int argc=1; const char* argv[2]={"polyhedron_viewer","\0"}; QApplication app(argc,const_cast(argv)); SimpleFaceGraphViewerQt mainwindow(app.activeWindow(), apoly, title, nofill); mainwindow.show(); app.exec(); } } #undef CGAL_POLY_TYPE } // End namespace CGAL #endif // CGAL_USE_BASIC_VIEWER #endif // CGAL_DRAW_POLYHEDRON_H