BWAPI
SPAR/AIModule/BWTA/vendors/CGAL/CGAL/create_straight_skeleton_from_polygon_with_holes_2.h
Go to the documentation of this file.
00001 // Copyright (c) 2006-2008 Fernando Luis Cacciola Carballal. All rights reserved.
00002 //
00003 // This file is part of CGAL (www.cgal.org); you may redistribute it under
00004 // the terms of the Q Public License version 1.0.
00005 // See the file LICENSE.QPL distributed with CGAL.
00006 //
00007 // Licensees holding a valid commercial license may use this file in
00008 // accordance with the commercial license agreement provided with the software.
00009 //
00010 // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00011 // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00012 //
00013 
00014 // $URL: svn+ssh://scm.gforge.inria.fr/svn/cgal/branches/CGAL-3.5-branch/Straight_skeleton_2/include/CGAL/create_straight_skeleton_from_polygon_with_holes_2.h $
00015 // $Id: create_straight_skeleton_from_polygon_with_holes_2.h 46407 2008-10-21 19:44:23Z fcacciola $
00016 //
00017 // Author(s)     : Fernando Cacciola <fernando_cacciola@ciudad.com.ar>
00018 //
00019 #ifndef CGAL_CREATE_STRAIGHT_SKELETON_FROM_POLYGON_WITH_HOLES_2_H
00020 #define CGAL_CREATE_STRAIGHT_SKELETON_FROM_POLYGON_WITH_HOLES_2_H
00021 
00022 #include <CGAL/create_straight_skeleton_2.h>
00023 #include <CGAL/Polygon_with_holes_2.h>
00024 
00025 CGAL_BEGIN_NAMESPACE
00026 
00027 template<class K>
00028 boost::shared_ptr< Straight_skeleton_2<K> >
00029 inline
00030 create_interior_straight_skeleton_2 ( Polygon_with_holes_2<K> const& aPolyWithHoles )
00031 {
00032   return create_interior_straight_skeleton_2(aPolyWithHoles.outer_boundary().vertices_begin()
00033                                             ,aPolyWithHoles.outer_boundary().vertices_end  ()
00034                                             ,aPolyWithHoles.holes_begin   ()
00035                                             ,aPolyWithHoles.holes_end     ()
00036                                             ,K()
00037                                             );
00038 }
00039 
00040 CGAL_END_NAMESPACE
00041 
00042 
00043 #endif // CGAL_STRAIGHT_SKELETON_BUILDER_2_H //
00044 // EOF //
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines