cgal/Triangulation_2/include/CGAL/Regular_triangulation_eucli...

63 lines
2.0 KiB
C++

// Copyright (c) 1997 INRIA Sophia-Antipolis (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) : Mariette Yvinec <Mariette.Yvinec@sophia.inria.fr>
// Sylvain Pion
#ifndef CGAL_REGULAR_TRIANGULATION_EUCLIDEAN_TRAITS_2_H
#define CGAL_REGULAR_TRIANGULATION_EUCLIDEAN_TRAITS_2_H
#include <CGAL/license/Triangulation_2.h>
#include <CGAL/config.h>
namespace CGAL {
template < class R, class W = typename R::RT>
class Regular_triangulation_euclidean_traits_2
: public R
{
public:
Regular_triangulation_euclidean_traits_2() {}
Regular_triangulation_euclidean_traits_2(const R& k) : R(k) {}
typedef R Kernel;
typedef R Rep;
typedef typename R::FT Weight;
typedef R Traits;
typedef typename R::Point_2 Bare_point;
typedef typename R::Weighted_point_2 Weighted_point_2;
typedef Weighted_point_2 Point_2;
// This is required for the point() function of vertex base class
// to be correctly return a weighted_point;
// patch 27/11/00
// 18/03/03 I put now the same typedef in Regulat_triangulation_2
// for the need of hierarchy
// don't know if this is definitive
//typedef Weighted_point Point_2;
};
} //namespace CGAL
#endif // CGAL_REGULAR_TRIANGULATION_EUCLIDEAN_TRAITS_2_H