License check for Geometric Measures and Miscellaneous

This commit is contained in:
Andreas Fabri 2017-03-22 10:05:39 +01:00
parent d04b048aa9
commit 51bbe5d1f6
12 changed files with 70 additions and 15 deletions

View File

@ -0,0 +1,60 @@
// Copyright (c) 2016 GeometryFactory SARL (France).
// All rights reserved.
//
// This file is part of CGAL (www.cgal.org); you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public License as
// published by the Free Software Foundation; either version 3 of the License,
// or (at your option) any later version.
//
// 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.
//
// Author(s) : Andreas Fabri
//
// Warning: this file is generated, see include/CGAL/licence/README.md
#ifndef CGAL_LICENSE_POLYGON_MESH_PROCESSING_MEASURE_H
#define CGAL_LICENSE_POLYGON_MESH_PROCESSING_MEASURE_H
#include <CGAL/config.h>
#include <CGAL/license.h>
#ifdef CGAL_POLYGON_MESH_PROCESSING_MEASURE_COMMERCIAL_LICENSE
# if CGAL_POLYGON_MESH_PROCESSING_MEASURE_COMMERCIAL_LICENSE < CGAL_RELEASE_DATE
# if defined(CGAL_LICENSE_WARNING)
CGAL_pragma_warning("Your commercial license for CGAL does not cover "
"this release of the Polygon Mesh Processing - Geometric Measure package.")
# endif
# ifdef CGAL_LICENSE_ERROR
# error "Your commercial license for CGAL does not cover this release \
of the Polygon Mesh Processing - Geometric Measure package. \
You get this error, as you defined CGAL_LICENSE_ERROR."
# endif // CGAL_LICENSE_ERROR
# endif // CGAL_POLYGON_MESH_PROCESSING_MEASURE_COMMERCIAL_LICENSE < CGAL_RELEASE_DATE
#else // no CGAL_POLYGON_MESH_PROCESSING_MEASURE_COMMERCIAL_LICENSE
# if defined(CGAL_LICENSE_WARNING)
CGAL_pragma_warning("You use the CGAL Polygon Mesh Processing - Geometric Measure package under "
"the terms of the GPLv3+.")
# endif // CGAL_LICENSE_WARNING
# ifdef CGAL_LICENSE_ERROR
# error "You use the CGAL Polygon Mesh Processing - Geometric Measure package under the terms of \
the GPLv3+. You get this error, as you defined CGAL_LICENSE_ERROR."
# endif // CGAL_LICENSE_ERROR
#endif // no CGAL_POLYGON_MESH_PROCESSING_MEASURE_COMMERCIAL_LICENSE
#endif // CGAL_LICENSE_CHECK_POLYGON_MESH_PROCESSING_MEASURE_H

View File

@ -21,7 +21,7 @@
#ifndef CGAL_POLYGON_MESH_PROCESSING_BOUNDING_BOX_H
#define CGAL_POLYGON_MESH_PROCESSING_BOUNDING_BOX_H
#include <CGAL/license/Polygon_mesh_processing.h>
#include <CGAL/license/Polygon_mesh_processing/miscellaneous.h>
#include <CGAL/Bbox_3.h>

View File

@ -21,7 +21,7 @@
#ifndef CGAL_POLYGON_MESH_PROCESSING_GET_BORDER_H
#define CGAL_POLYGON_MESH_PROCESSING_GET_BORDER_H
#include <CGAL/license/Polygon_mesh_processing.h>
#include <CGAL/license/Polygon_mesh_processing/miscellaneous.h>
#include <boost/graph/graph_traits.hpp>

View File

@ -29,7 +29,7 @@
#ifndef CGAL_INTERNAL_POLYGON_MESH_SLICER_AXIS_PARALLEL_PLANE_TRAITS_H
#define CGAL_INTERNAL_POLYGON_MESH_SLICER_AXIS_PARALLEL_PLANE_TRAITS_H
#include <CGAL/license/Polygon_mesh_processing.h>
#include <CGAL/license/Polygon_mesh_processing/miscellaneous.h>
namespace CGAL{

View File

@ -22,7 +22,7 @@
#ifndef CGAL_INTERNAL_POLYGON_MESH_SLICER_TRAVERSAL_TRAITS_H
#define CGAL_INTERNAL_POLYGON_MESH_SLICER_TRAVERSAL_TRAITS_H
#include <CGAL/license/Polygon_mesh_processing.h>
#include <CGAL/license/Polygon_mesh_processing/miscellaneous.h>
#include <CGAL/Bbox_3.h>

View File

@ -21,7 +21,7 @@
#ifndef CGAL_POINT_INSIDE_POLYHEDRON_AABB_TRIANGLE_ACCESSOR_3_PRIMITIVE_H
#define CGAL_POINT_INSIDE_POLYHEDRON_AABB_TRIANGLE_ACCESSOR_3_PRIMITIVE_H
#include <CGAL/license/Polygon_mesh_processing.h>
#include <CGAL/license/Polygon_mesh_processing/miscellaneous.h>
namespace CGAL {

View File

@ -22,7 +22,7 @@
#ifndef CGAL_POINT_INSIDE_POLYHEDRON_POINT_INSIDE_VERTICAL_RAY_CAST_H
#define CGAL_POINT_INSIDE_POLYHEDRON_POINT_INSIDE_VERTICAL_RAY_CAST_H
#include <CGAL/license/Polygon_mesh_processing.h>
#include <CGAL/license/Polygon_mesh_processing/miscellaneous.h>
#include <CGAL/Polygon_mesh_processing/internal/Side_of_triangle_mesh/Ray_3_Triangle_3_traversal_traits.h>

View File

@ -22,7 +22,7 @@
#ifndef CGAL_POINT_INSIDE_POLYHEDRON_RAY_3_TRIANGLE_3_TRAVERSAL_TRAITS_H
#define CGAL_POINT_INSIDE_POLYHEDRON_RAY_3_TRIANGLE_3_TRAVERSAL_TRAITS_H
#include <CGAL/license/Polygon_mesh_processing.h>
#include <CGAL/license/Polygon_mesh_processing/miscellaneous.h>
#include <boost/logic/tribool.hpp>

View File

@ -21,7 +21,7 @@
#ifndef CGAL_POLYGON_MESH_PROCESSING_MEASURE_H
#define CGAL_POLYGON_MESH_PROCESSING_MEASURE_H
#include <CGAL/license/Polygon_mesh_processing.h>
#include <CGAL/license/Polygon_mesh_processing/measure.h>
#include <CGAL/boost/graph/iterator.h>

View File

@ -21,7 +21,7 @@
#ifndef CGAL_POLYGON_MESH_SLICER_H
#define CGAL_POLYGON_MESH_SLICER_H
#include <CGAL/license/Polygon_mesh_processing.h>
#include <CGAL/license/Polygon_mesh_processing/miscellaneous.h>
#include <CGAL/AABB_tree.h>

View File

@ -22,7 +22,7 @@
#ifndef CGAL_SIDE_OF_TRIANGLE_MESH_H
#define CGAL_SIDE_OF_TRIANGLE_MESH_H
#include <CGAL/license/Polygon_mesh_processing.h>
#include <CGAL/license/Polygon_mesh_processing/miscellaneous.h>
#include <CGAL/Polygon_mesh_processing/internal/Side_of_triangle_mesh/Point_inside_vertical_ray_cast.h>

View File

@ -2,15 +2,10 @@
#include <CGAL/Exact_predicates_exact_constructions_kernel.h>
#include <CGAL/Polyhedron_3.h>
#include <CGAL/boost/graph/properties_Polyhedron_3.h>
#include <CGAL/IO/Polyhedron_iostream.h>
#include <CGAL/Surface_mesh.h>
#include <CGAL/boost/graph/properties_Surface_mesh.h>
#include <CGAL/Polygon_mesh_processing/measure.h>
#include <CGAL/Polygon_mesh_processing/bbox.h>
#include <CGAL/Polygon_mesh_processing/stitch_borders.h>
#include <CGAL/Bbox_3.h>