// Copyright (c) 2011 GeometryFactory (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 // 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$ // // // Author(s) : Laurent Rineau // #ifndef CGAL_MESH_3_POLYLINE_WITH_CONTEXT_H #define CGAL_MESH_3_POLYLINE_WITH_CONTEXT_H #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 std::unary_function { typedef std::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