From 98ae089d10cc8ccdf5ea65292ec5f66f695d191d Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Wed, 17 May 2023 21:57:51 +0100 Subject: [PATCH] Add package 2D Polygon Repair --- Documentation/doc/Documentation/packages.txt | 1 + .../include/CGAL/license/Polygon_repair_2.h | 54 ++++++++++++++++++ .../doc/Polygon_repair_2/Doxyfile.in | 4 ++ .../Polygon_repair_2/PackageDescription.txt | 40 +++++++++++++ .../doc/Polygon_repair_2/Polygon_repair_2.txt | 29 ++++++++++ .../doc/Polygon_repair_2/dependencies | 7 +++ .../doc/Polygon_repair_2/examples.txt | 3 + .../fig/Polygon_repair_2-small.png | Bin 0 -> 9467 bytes .../examples/Polygon_repair_2/CMakeLists.txt | 16 ++++++ .../Polygon_repair_2/repair_polygon_2.cpp | 19 ++++++ .../include/CGAL/Polygon_repair_2/repair.h | 25 ++++++++ .../package_info/Polygon_repair_2/copyright | 1 + .../Polygon_repair_2/description.txt | 1 + .../package_info/Polygon_repair_2/license.txt | 1 + .../Polygon_repair_2/long_description.txt | 0 .../package_info/Polygon_repair_2/maintainer | 1 + .../test/Polygon_repair_2/CMakeLists.txt | 16 ++++++ .../repair_polygon_2_test.cpp | 19 ++++++ 18 files changed, 237 insertions(+) create mode 100644 Installation/include/CGAL/license/Polygon_repair_2.h create mode 100644 Polygon_repair_2/doc/Polygon_repair_2/Doxyfile.in create mode 100644 Polygon_repair_2/doc/Polygon_repair_2/PackageDescription.txt create mode 100644 Polygon_repair_2/doc/Polygon_repair_2/Polygon_repair_2.txt create mode 100644 Polygon_repair_2/doc/Polygon_repair_2/dependencies create mode 100644 Polygon_repair_2/doc/Polygon_repair_2/examples.txt create mode 100644 Polygon_repair_2/doc/Polygon_repair_2/fig/Polygon_repair_2-small.png create mode 100644 Polygon_repair_2/examples/Polygon_repair_2/CMakeLists.txt create mode 100644 Polygon_repair_2/examples/Polygon_repair_2/repair_polygon_2.cpp create mode 100644 Polygon_repair_2/include/CGAL/Polygon_repair_2/repair.h create mode 100644 Polygon_repair_2/package_info/Polygon_repair_2/copyright create mode 100644 Polygon_repair_2/package_info/Polygon_repair_2/description.txt create mode 100644 Polygon_repair_2/package_info/Polygon_repair_2/license.txt create mode 100644 Polygon_repair_2/package_info/Polygon_repair_2/long_description.txt create mode 100644 Polygon_repair_2/package_info/Polygon_repair_2/maintainer create mode 100644 Polygon_repair_2/test/Polygon_repair_2/CMakeLists.txt create mode 100644 Polygon_repair_2/test/Polygon_repair_2/repair_polygon_2_test.cpp diff --git a/Documentation/doc/Documentation/packages.txt b/Documentation/doc/Documentation/packages.txt index aa061c842d8..d89ade95142 100644 --- a/Documentation/doc/Documentation/packages.txt +++ b/Documentation/doc/Documentation/packages.txt @@ -31,6 +31,7 @@ \cgalPackageSection{PartPolygons,Polygons} \package_listing{Polygon} +\package_listing{Polygon_repair_2} \package_listing{Boolean_set_operations_2} \package_listing{Nef_2} \package_listing{Nef_S2} diff --git a/Installation/include/CGAL/license/Polygon_repair_2.h b/Installation/include/CGAL/license/Polygon_repair_2.h new file mode 100644 index 00000000000..11c0f94e3c5 --- /dev/null +++ b/Installation/include/CGAL/license/Polygon_repair_2.h @@ -0,0 +1,54 @@ +// Copyright (c) 2016 GeometryFactory SARL (France). +// All rights reserved. +// +// This file is part of CGAL (www.cgal.org) +// +// $URL$ +// $Id$ +// SPDX-License-Identifier: LGPL-3.0-or-later OR LicenseRef-Commercial +// +// Author(s) : Andreas Fabri +// +// Warning: this file is generated, see include/CGAL/license/README.md + +#ifndef CGAL_LICENSE_POLYGON_REPAIR_2_H +#define CGAL_LICENSE_POLYGON_REPAIR_2_H + +#include +#include + +#ifdef CGAL_POLYGON_REPAIR_2_COMMERCIAL_LICENSE + +# if CGAL_POLYGON_REPAIR_2_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 2D Polygon Repair package.") +# endif + +# ifdef CGAL_LICENSE_ERROR +# error "Your commercial license for CGAL does not cover this release \ + of the 2D Polygon Repair package. \ + You get this error, as you defined CGAL_LICENSE_ERROR." +# endif // CGAL_LICENSE_ERROR + +# endif // CGAL_POLYGON_REPAIR_2_COMMERCIAL_LICENSE < CGAL_RELEASE_DATE + +#else // no CGAL_POLYGON_REPAIR_2_COMMERCIAL_LICENSE + +# if defined(CGAL_LICENSE_WARNING) + CGAL_pragma_warning("\nThe macro CGAL_POLYGON_REPAIR_2_COMMERCIAL_LICENSE is not defined." + "\nYou use the CGAL 2D Polygon Repair package under " + "the terms of the GPLv3+.") +# endif // CGAL_LICENSE_WARNING + +# ifdef CGAL_LICENSE_ERROR +# error "The macro CGAL_POLYGON_REPAIR_2_COMMERCIAL_LICENSE is not defined.\ + You use the CGAL 2D Polygon Repair 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_REPAIR_2_COMMERCIAL_LICENSE + +#endif // CGAL_LICENSE_POLYGON_REPAIR_2_H diff --git a/Polygon_repair_2/doc/Polygon_repair_2/Doxyfile.in b/Polygon_repair_2/doc/Polygon_repair_2/Doxyfile.in new file mode 100644 index 00000000000..eac877a4f2b --- /dev/null +++ b/Polygon_repair_2/doc/Polygon_repair_2/Doxyfile.in @@ -0,0 +1,4 @@ +@INCLUDE = ${CGAL_DOC_PACKAGE_DEFAULTS} +PROJECT_NAME = "CGAL ${CGAL_DOC_VERSION} - 2D Polygon Repair" +INPUT = ${CMAKE_SOURCE_DIR}/Polygon_repair_2/doc/Polygon_repair_2/ \ + ${CMAKE_SOURCE_DIR}/Polygon_repair_2/include diff --git a/Polygon_repair_2/doc/Polygon_repair_2/PackageDescription.txt b/Polygon_repair_2/doc/Polygon_repair_2/PackageDescription.txt new file mode 100644 index 00000000000..2d02aeae88a --- /dev/null +++ b/Polygon_repair_2/doc/Polygon_repair_2/PackageDescription.txt @@ -0,0 +1,40 @@ +// PRETTY PACKAGE NAME should equal the project title in Doxyfile.in + +/// \defgroup PkgPolygonRepair2 2D Polygon Repair Reference +/// \defgroup PkgPolygonRepair2Concepts Concepts +/// \ingroup PkgPolygonRepair2 + +/// \defgroup PkgPolygonRepair2AlgorithmClasses Algorithm Classes +/// \ingroup PkgPolygonRepair2 + +/// \defgroup PkgPolygonRepair2TraitsClasses Traits Classes +/// \ingroup PkgPolygonRepair2 + +/// \defgroup PkgPolygonRepair2Miscellaneous Miscellaneous +/// \ingroup PkgPolygonRepair2 + +/*! +\addtogroup PkgPolygonRepair2 +\todo check generated documentation + +\cgalPkgDescriptionBegin{2D Polygon Repair,PkgPolygonRepair2} +\cgalPkgPicture{Polygon_repair_2-small.png} + +\cgalPkgSummaryBegin +\cgalPkgAuthors{Ken Arroyo Ohori} +\cgalPkgDesc{The package provides algorithms to repair 2D polygons. } +\cgalPkgManuals{Chapter_2D_Polygon_repair,PkgPolygonRepair2} +\cgalPkgSummaryEnd + +\cgalPkgShortInfoBegin +\cgalPkgSince{6.0} +\cgalPkgDependsOn{\ref PkgDEPENDENCY} +\cgalPkgBib{cgal:x-x} +\cgalPkgLicense{\ref licensesGPL "GPL"} +\cgalPkgDemo{DEMO 1,demo1.zip} +\cgalPkgDemo{DEMO 2,demo2.zip} +\cgalPkgShortInfoEnd + +\cgalPkgDescriptionEnd + +*/ diff --git a/Polygon_repair_2/doc/Polygon_repair_2/Polygon_repair_2.txt b/Polygon_repair_2/doc/Polygon_repair_2/Polygon_repair_2.txt new file mode 100644 index 00000000000..723a7d05053 --- /dev/null +++ b/Polygon_repair_2/doc/Polygon_repair_2/Polygon_repair_2.txt @@ -0,0 +1,29 @@ +namespace CGAL { +/*! + +\mainpage User Manual +\anchor Chapter_2D_Polygon_repair + +\cgalAutoToc +\author Ken Arroyo Ohori + +This chapter describes the ... + +\section SectionPolygonRepair2_Definitions Definitions + +Section on definitions here ... + +\section SectionPolygonRepair2_Examples Examples + +\subsection SubsectionPolygonRepair2_FirstExample First Example + +The following example shows ... + +\cgalExample{Polygon_repair_2/repair_polygon_2.cpp} + +\cgalFigureBegin{figPck,bench.png} +Left: ... +\cgalFigureEnd + +*/ +} /* namespace CGAL */ diff --git a/Polygon_repair_2/doc/Polygon_repair_2/dependencies b/Polygon_repair_2/doc/Polygon_repair_2/dependencies new file mode 100644 index 00000000000..6df3ace8d07 --- /dev/null +++ b/Polygon_repair_2/doc/Polygon_repair_2/dependencies @@ -0,0 +1,7 @@ +Manual +Kernel_23 +STL_Extension +Algebraic_foundations +Circulator +Stream_support +Polygon \ No newline at end of file diff --git a/Polygon_repair_2/doc/Polygon_repair_2/examples.txt b/Polygon_repair_2/doc/Polygon_repair_2/examples.txt new file mode 100644 index 00000000000..c3d2195f5d8 --- /dev/null +++ b/Polygon_repair_2/doc/Polygon_repair_2/examples.txt @@ -0,0 +1,3 @@ +/*! +\example Polygon_repair_2/repair_polygon_2.cpp +*/ diff --git a/Polygon_repair_2/doc/Polygon_repair_2/fig/Polygon_repair_2-small.png b/Polygon_repair_2/doc/Polygon_repair_2/fig/Polygon_repair_2-small.png new file mode 100644 index 0000000000000000000000000000000000000000..5609b037587a48c46b483d2c0768c7ae88b40c72 GIT binary patch literal 9467 zcmZ`QsjDeqppv3OAP@}2H?o@G)$`?vj0nC9ne$JA7erHK1zGS4zV2k21HcQ4 z zCJl=cDv8?+kDJMb7&3R*r#9Iwrub+2I7!eriC^t2XLk3%^j*@x3U5uey|6ovm})lf z&^Np>>jQqLNi~D}ZZdw@T2ypcdP!s$*r4&YrJMVZH%Onc|0Fp5-Ocg|?%HmtpEd-On~O*pAO8iP^87-XI%SYLZHOjC2|PNsojDhu^5nYAv&DP} zF(b_6d;@1}^;|7JW-|J7Vc!lf%A3v)lU#BE3YfXGRU3@_ch4=&M@Jl{MedF~P!QE_oPp-z~06lE>Y`l8(x0P}}hJe+oczo-?$g zO>tIq=g(d8IdONsJvA|{UySNnZ-6~DI3*<|MV8aJc#@FQ*xH*Y+!__BPx|?j-g!)H zU@L}Ga_P7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$v95RR6^?>-=@~Vh4j%0XR|pe3`)e0MYZqQ?7gOzlD2b&I zFmMJ02EvtaT{ffCFWSG=@e%6uFro|8!BF?+&j%EQ`7!spx;iOfa!X5@^CK)Oc%2#z zKz0ugepSuy2851ynAN#(Z2(35m-f$LjFIP1uQ!*u$ zuP*zA)k_FXP6G^$(zCJvjvCB%-zZ~pab;f5FD#${o!4lP!?nGw2}UpIP0h`qbu=_I zaCB6?dSDNC4UmwKKAJ z)6aD!;4J~|jnB;?<*TQwU)adO9-iO_@O_|+kLc{|3_W}|1asKl4goR8mh&CMV>kiA zsR0OnRH&jE%5 zL6X?SvQa-wsvzXD1{^vN>gHw2(yrG;vH`)V68ZKVw;(YB3CGLBQBZ?w&@c#fjbm>h1 literal 0 HcmV?d00001 diff --git a/Polygon_repair_2/examples/Polygon_repair_2/CMakeLists.txt b/Polygon_repair_2/examples/Polygon_repair_2/CMakeLists.txt new file mode 100644 index 00000000000..7e634d7d73e --- /dev/null +++ b/Polygon_repair_2/examples/Polygon_repair_2/CMakeLists.txt @@ -0,0 +1,16 @@ +# Created by the script cgal_create_cmake_script +# This is the CMake script for compiling a CGAL application. + +cmake_minimum_required(VERSION 3.1...3.23) +project(Polygon_repair_2_Examples) + +find_package(CGAL REQUIRED) + +# create a target per cppfile +file( + GLOB cppfiles + RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp) +foreach(cppfile ${cppfiles}) + create_single_source_cgal_program("${cppfile}") +endforeach() diff --git a/Polygon_repair_2/examples/Polygon_repair_2/repair_polygon_2.cpp b/Polygon_repair_2/examples/Polygon_repair_2/repair_polygon_2.cpp new file mode 100644 index 00000000000..20b2c9694a8 --- /dev/null +++ b/Polygon_repair_2/examples/Polygon_repair_2/repair_polygon_2.cpp @@ -0,0 +1,19 @@ +#include +#include + +#include +#include +#include +#include +#include + + +typedef CGAL::Exact_predicates_inexact_constructions_kernel K; +typedef CGAL::Polygon_2 Polygon_2; +typedef CGAL::Polygon_with_holes_2 Polygon_with_holes_2; + +int main(int argc, char* argv[]) +{ + std::ifstream ifs( (argc==1)?"data/polygon.wkt":argv[1]); + return 0; +} diff --git a/Polygon_repair_2/include/CGAL/Polygon_repair_2/repair.h b/Polygon_repair_2/include/CGAL/Polygon_repair_2/repair.h new file mode 100644 index 00000000000..eae44162a9b --- /dev/null +++ b/Polygon_repair_2/include/CGAL/Polygon_repair_2/repair.h @@ -0,0 +1,25 @@ +// Copyright (c) 2023 GeometryFactory. All rights reserved. +// All rights reserved. +// +// This file is part of CGAL (www.cgal.org). +// +// $URL$ +// $Id$ +// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-Commercial +// +// Author(s) : Ken Arroyo Ohori +// +#ifndef CGAL_POLYGON_REPAIR_2_REPAIR_H +#define CGAL_POLYGON_REPAIR_2_REPAIR_H + +#include + + +namespace CGAL { + +namespace Polygon_repair_2 { + +} // namespace Polygon_repair_2 +} // namespace CGAL + +#endif diff --git a/Polygon_repair_2/package_info/Polygon_repair_2/copyright b/Polygon_repair_2/package_info/Polygon_repair_2/copyright new file mode 100644 index 00000000000..b9a65603a2e --- /dev/null +++ b/Polygon_repair_2/package_info/Polygon_repair_2/copyright @@ -0,0 +1 @@ +GeometryFactory (France) diff --git a/Polygon_repair_2/package_info/Polygon_repair_2/description.txt b/Polygon_repair_2/package_info/Polygon_repair_2/description.txt new file mode 100644 index 00000000000..4fee1c79271 --- /dev/null +++ b/Polygon_repair_2/package_info/Polygon_repair_2/description.txt @@ -0,0 +1 @@ +Package Polygon_repair_2 provides functions to repair polygons. diff --git a/Polygon_repair_2/package_info/Polygon_repair_2/license.txt b/Polygon_repair_2/package_info/Polygon_repair_2/license.txt new file mode 100644 index 00000000000..8bb8efcb72b --- /dev/null +++ b/Polygon_repair_2/package_info/Polygon_repair_2/license.txt @@ -0,0 +1 @@ +GPL (v3 or later) diff --git a/Polygon_repair_2/package_info/Polygon_repair_2/long_description.txt b/Polygon_repair_2/package_info/Polygon_repair_2/long_description.txt new file mode 100644 index 00000000000..e69de29bb2d diff --git a/Polygon_repair_2/package_info/Polygon_repair_2/maintainer b/Polygon_repair_2/package_info/Polygon_repair_2/maintainer new file mode 100644 index 00000000000..2427333ef57 --- /dev/null +++ b/Polygon_repair_2/package_info/Polygon_repair_2/maintainer @@ -0,0 +1 @@ +GeometryFactory diff --git a/Polygon_repair_2/test/Polygon_repair_2/CMakeLists.txt b/Polygon_repair_2/test/Polygon_repair_2/CMakeLists.txt new file mode 100644 index 00000000000..7e634d7d73e --- /dev/null +++ b/Polygon_repair_2/test/Polygon_repair_2/CMakeLists.txt @@ -0,0 +1,16 @@ +# Created by the script cgal_create_cmake_script +# This is the CMake script for compiling a CGAL application. + +cmake_minimum_required(VERSION 3.1...3.23) +project(Polygon_repair_2_Examples) + +find_package(CGAL REQUIRED) + +# create a target per cppfile +file( + GLOB cppfiles + RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp) +foreach(cppfile ${cppfiles}) + create_single_source_cgal_program("${cppfile}") +endforeach() diff --git a/Polygon_repair_2/test/Polygon_repair_2/repair_polygon_2_test.cpp b/Polygon_repair_2/test/Polygon_repair_2/repair_polygon_2_test.cpp new file mode 100644 index 00000000000..20b2c9694a8 --- /dev/null +++ b/Polygon_repair_2/test/Polygon_repair_2/repair_polygon_2_test.cpp @@ -0,0 +1,19 @@ +#include +#include + +#include +#include +#include +#include +#include + + +typedef CGAL::Exact_predicates_inexact_constructions_kernel K; +typedef CGAL::Polygon_2 Polygon_2; +typedef CGAL::Polygon_with_holes_2 Polygon_with_holes_2; + +int main(int argc, char* argv[]) +{ + std::ifstream ifs( (argc==1)?"data/polygon.wkt":argv[1]); + return 0; +}