// Copyright (c) 2011 GeometryFactory (France). // All rights reserved. // // This file is part of CGAL (www.cgal.org). // // $URL: https://github.com/CGAL/cgal/blob/v5.2/Mesh_3/include/CGAL/Mesh_3/Polyline_with_context.h $ // $Id: Polyline_with_context.h 0779373 2020-03-26T13:31:46+01:00 Sébastien Loriot // SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-Commercial // // // Author(s) : Laurent Rineau // #ifndef CGAL_MESH_3_POLYLINE_WITH_CONTEXT_H #define CGAL_MESH_3_POLYLINE_WITH_CONTEXT_H #include #include #include namespace CGAL { namespace Mesh_3 { template struct Polyline_context { typedef std::set Patches_ids; typedef Curve_id_ Curve_id; Curve_id id; Patches_ids adjacent_patches_ids; }; template struct Polyline_with_context { typedef Bare_polyline_ Bare_polyline; typedef typename Bare_polyline::value_type Point_3; typedef Polyline_context Context; Context context; Bare_polyline polyline_content; }; /** * @class Extract_bare_polyline * A functor to get bare polyline from Polyline_with_context (Pwc_). */ template struct Extract_bare_polyline : public CGAL::cpp98::unary_function { typedef CGAL::cpp98::unary_function Base; typedef typename Base::result_type result_type; typedef typename Base::argument_type argument_type; result_type operator()(const argument_type& p) const { return p.polyline_content; } }; }} // end namespaces #endif // CGAL_MESH_3_POLYLINE_WITH_CONTEXT_H