⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 td_predicates.h

📁 很多二维 三维几何计算算法 C++ 类库
💻 H
字号:
// Copyright (c) 1997  Tel-Aviv University (Israel).// All rights reserved.//// This file is part of CGAL (www.cgal.org); you may redistribute it under// the terms of the Q Public License version 1.0.// See the file LICENSE.QPL 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/Arrangement_2/include/CGAL/Arr_point_location/Td_predicates.h $// $Id: Td_predicates.h 35794 2007-01-24 18:00:30Z spion $// //// Author(s)	 : Oren Nechushtan <theoren@math.tau.ac.il>//		   Iddo Hanniel <hanniel@math.tau.ac.il>#ifndef CGAL_TD_PREDICATES_H#define CGAL_TD_PREDICATES_H#include <CGAL/basic.h>#include <functional>CGAL_BEGIN_NAMESPACEtemplate < class Td_traits> class Trapezoidal_decomposition_2;template <class X_trapezoid>struct Td_active_trapezoid : public std::unary_function<X_trapezoid,bool>{  bool operator()(const X_trapezoid& tr) const  {    return tr.is_active();  }};template <class X_trapezoid,class Traits>struct Td_active_non_degenerate_trapezoid : public std::unary_function<X_trapezoid,bool>{  Td_active_non_degenerate_trapezoid(Traits& t) : traits(t) {}  bool operator()(const X_trapezoid& tr) const  {    return tr.is_active() && !traits.is_degenerate(tr);  }protected:  const Traits& traits;};template <class X_trapezoid,class Traits>struct Td_active_right_degenerate_curve_trapezoid:  public std::unary_function<X_trapezoid,bool>{  typedef const Traits& const_Traits_ref;  Td_active_right_degenerate_curve_trapezoid(const_Traits_ref t) : traits(t) {}  bool operator()(const X_trapezoid& tr) const  {    return tr.is_active() && traits.is_degenerate_curve(tr) &&       !tr.right_bottom_neighbour();  }  protected:  const Traits& traits;};template <class _Tp>struct Trapezoid_handle_less : public std::binary_function<_Tp, _Tp, bool>{  bool operator()(const _Tp& __x, const _Tp& __y) const {     return __x->id() < __y->id(); }};/* Return if two trapezoids are the same */CGAL_END_NAMESPACE#endif //CGAL_TD_PREDICATES_H

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -