📄 delaunay_triangulation_vertex_base_2.h
字号:
// Copyright (c) 2005 Stanford University (USA).// 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 Lesser General Public License as// published by the Free Software Foundation; version 2.1 of the License.// See the file LICENSE.LGPL distributed with CGAL.//// 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: svn+ssh://scm.gforge.inria.fr/svn/cgal/branches/CGAL-3.3-branch/Kinetic_data_structures/include/CGAL/Kinetic/Delaunay_triangulation_vertex_base_2.h $// $Id: Delaunay_triangulation_vertex_base_2.h 36326 2007-02-15 17:48:43Z drussel $// //// Author(s) : Daniel Russel <drussel@alumni.princeton.edu>#ifndef CGAL_KINETIC_DELAUNAY_TRIANGULATION_VERTEX_BASE_H#define CGAL_KINETIC_DELAUNAY_TRIANGULATION_VERTEX_BASE_H#include <CGAL/Kinetic/basic.h>#include <CGAL/Triangulation_vertex_base_2.h>CGAL_KINETIC_BEGIN_NAMESPACEtemplate < typename GT, typename Vb = Triangulation_vertex_base_2<GT> >class Delaunay_triangulation_vertex_base_2 : public Vb{ int degree_;public: typedef typename Vb::Face_handle Face_handle; typedef typename Vb::Point Point; template < typename TDS2 > struct Rebind_TDS { typedef typename Vb::template Rebind_TDS<TDS2>::Other Vb2; typedef Delaunay_triangulation_vertex_base_2<GT, Vb2> Other; }; Delaunay_triangulation_vertex_base_2() : Vb(), degree_(-1){} Delaunay_triangulation_vertex_base_2(const Point & p) : Vb(p), degree_(-1){} Delaunay_triangulation_vertex_base_2(const Point & p, Face_handle c) : Vb(p, c), degree_(-1) {} Delaunay_triangulation_vertex_base_2(Face_handle c) : Vb(c), degree_(-1) {} unsigned int neighbors() const { return degree_; } // was abs //bool neighbors_is_changed() const {return degree_<0;} /*void set_neighbors_is_changed(bool tf) { if (tf) degree_= -std::abs(degree_); else degree_= std::abs(degree_); CGAL_postcondition(neighbors_is_changed()==tf); } */ void set_neighbors(int d) {degree_=d;}};CGAL_KINETIC_END_NAMESPACE#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -