From de48d6df314f7d90c65ac9b75c20cfb9efee55e6 Mon Sep 17 00:00:00 2001 From: Guillaume Damiand Date: Fri, 14 Jun 2019 16:47:54 +0200 Subject: [PATCH] Add polygonal schema min item --- .../include/CGAL/Polygonal_schema_min_items.h | 56 +++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 Surface_mesh_topology/include/CGAL/Polygonal_schema_min_items.h diff --git a/Surface_mesh_topology/include/CGAL/Polygonal_schema_min_items.h b/Surface_mesh_topology/include/CGAL/Polygonal_schema_min_items.h new file mode 100644 index 00000000000..1ba2d008eec --- /dev/null +++ b/Surface_mesh_topology/include/CGAL/Polygonal_schema_min_items.h @@ -0,0 +1,56 @@ +// Copyright (c) 2019 CNRS and LIRIS' Establishments (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. +// +// $URL$ +// $Id$ +// SPDX-License-Identifier: LGPL-3.0+ +// +// Author(s) : Guillaume Damiand +// +#ifndef CGAL_POLYGONAL_SCHEMA_MIN_ITEMS_H +#define CGAL_POLYGONAL_SCHEMA_MIN_ITEMS_H 1 + +#include + +namespace CGAL { + + /** @file Polygonal_schema_min_items.h + * Definition of min item class for Polygonal_schema. + */ + + /** Minimal items for polygonal schema. + * Generic_map_min_items defines what is the minimal item class for a generic map. + * One struct associated with darts, having one char* named m_label.. + */ + struct Polygonal_schema_min_items + { + template < class Refs > + struct Dart_wrapper + { + struct Info_for_darts + { + char* m_label; + + Info_for_darts() : m_label(NULL) + {} + }; + + typedef Info_for_darts Dart_info; + }; + }; + +} // namespace CGAL + +#endif // CGAL_POLYGONAL_SCHEMA_MIN_ITEMS_H +// EOF //