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

📄 nef_polyhedron_2_window_stream.h

📁 很多二维 三维几何计算算法 C++ 类库
💻 H
字号:
// Copyright (c) 1997-2000  Max-Planck-Institute Saarbruecken (Germany).// 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/Nef_2/include/CGAL/IO/Nef_polyhedron_2_Window_stream.h $// $Id: Nef_polyhedron_2_Window_stream.h 28567 2006-02-16 14:30:13Z lsaboret $// //// Author(s)     : Michael Seel <seel@mpi-sb.mpg.de>#ifndef NEF_POLYHEDRON_2_WINDOW_STREAM_H#define NEF_POLYHEDRON_2_WINDOW_STREAM_H#include <CGAL/Nef_polyhedron_2.h>#include <CGAL/Nef_2/PM_visualizor.h>CGAL_BEGIN_NAMESPACEstatic long frame_default = 100;static bool show_triangulation = false;template <typename T>CGAL::Window_stream& operator<<(CGAL::Window_stream& ws, const Nef_polyhedron_2<T>& P){  typedef Nef_polyhedron_2<T> Polyhedron;  typedef typename T::RT RT;  typedef typename T::Standard_RT Standard_RT;  typedef typename Polyhedron::Topological_explorer TExplorer;  typedef typename Polyhedron::Point            Point;  typedef typename Polyhedron::Line             Line;  typedef CGAL::PM_BooleColor<TExplorer> BooleColor;  typedef CGAL::PM_visualizor<TExplorer,T,BooleColor> Visualizor;  TExplorer D = P.explorer();  const T& E = Nef_polyhedron_2<T>::EK;  Standard_RT frame_radius = frame_default;  E.determine_frame_radius(D.points_begin(),D.points_end(),frame_radius);  RT::set_R(frame_radius);  Visualizor PMV(ws,D); PMV.draw_map();  if (show_triangulation) {    P.init_locator();    Visualizor V(ws,P.locator().triangulation());    V.draw_skeleton(CGAL::BLUE);  }    return ws;}CGAL_END_NAMESPACE#endif // NEF_POLYHEDRON_2_WINDOW_STREAM_H

⌨️ 快捷键说明

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