// Copyright (c) 2008 GeometryFactory, 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) : Laurent RINEAU #ifndef CGAL_MESH_3_DIHEDRAL_ANGLE_3_H #define CGAL_MESH_3_DIHEDRAL_ANGLE_3_H #include #include #include #include namespace CGAL { namespace Mesh_3 { /** * Computes dihedral angle of planes (a,b,c) and (a,b,d) */ template typename K::FT dihedral_angle(const typename K::Point_3& a, const typename K::Point_3& b, const typename K::Point_3& c, const typename K::Point_3& d, K k = K()) { // Now in the CGAL kernels return k.compute_approximate_dihedral_angle_3_object()(a, b, c, d); } /** * Computes dihedral angle of planes (a,b,c) and (a,b,d) */ template typename Kernel_traits::Kernel::FT dihedral_angle(const Point_3& a, const Point_3& b, const Point_3& c, const Point_3& d) { return CGAL::Mesh_3::dihedral_angle(a, b, c, d, typename Kernel_traits::Kernel()); } } // end namespace Mesh_3 } // end namespace CGAL #endif // CGAL_MESH_3_DIHEDRAL_ANGLE_3_H