BWAPI
|
00001 // Copyright (c) 1997 ETH Zurich (Switzerland). 00002 // All rights reserved. 00003 // 00004 // This file is part of CGAL (www.cgal.org); you may redistribute it under 00005 // the terms of the Q Public License version 1.0. 00006 // See the file LICENSE.QPL distributed with CGAL. 00007 // 00008 // Licensees holding a valid commercial license may use this file in 00009 // accordance with the commercial license agreement provided with the software. 00010 // 00011 // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 00012 // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 00013 // 00014 // $URL: svn+ssh://scm.gforge.inria.fr/svn/cgal/branches/CGAL-3.5-branch/Polyhedron/include/CGAL/Polyhedron_traits_with_normals_3.h $ 00015 // $Id: Polyhedron_traits_with_normals_3.h 28567 2006-02-16 14:30:13Z lsaboret $ 00016 // 00017 // 00018 // Author(s) : Lutz Kettner <kettner@mpi-sb.mpg.de>) 00019 00020 #ifndef CGAL_POLYHEDRON_TRAITS_WITH_NORMALS_3_H 00021 #define CGAL_POLYHEDRON_TRAITS_WITH_NORMALS_3_H 1 00022 00023 #include <CGAL/basic.h> 00024 00025 CGAL_BEGIN_NAMESPACE 00026 00027 template < class Kernel_ > 00028 class Polyhedron_traits_with_normals_3 { 00029 public: 00030 typedef Kernel_ Kernel; 00031 typedef typename Kernel::Point_3 Point_3; 00032 typedef typename Kernel::Vector_3 Plane_3; 00033 00034 typedef typename Kernel::Construct_opposite_vector_3 00035 Construct_opposite_plane_3; 00036 private: 00037 Kernel m_kernel; 00038 00039 public: 00040 Polyhedron_traits_with_normals_3() {} 00041 Polyhedron_traits_with_normals_3( const Kernel& kernel) 00042 : m_kernel(kernel) {} 00043 00044 Construct_opposite_plane_3 construct_opposite_plane_3_object() const { 00045 return m_kernel.construct_opposite_vector_3_object(); 00046 } 00047 }; 00048 00049 CGAL_END_NAMESPACE 00050 00051 #endif // CGAL_POLYHEDRON_TRAITS_WITH_NORMALS_3_H // 00052 // EOF //