00001 //============================================================================= 00002 // 00003 // OpenMesh 00004 // Copyright (C) 2003 by Computer Graphics Group, RWTH Aachen 00005 // www.openmesh.org 00006 // 00007 //----------------------------------------------------------------------------- 00008 // 00009 // License 00010 // 00011 // This library is free software; you can redistribute it and/or modify it 00012 // under the terms of the GNU Lesser General Public License as published 00013 // by the Free Software Foundation, version 2.1. 00014 // 00015 // This library is distributed in the hope that it will be useful, but 00016 // WITHOUT ANY WARRANTY; without even the implied warranty of 00017 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00018 // Lesser General Public License for more details. 00019 // 00020 // You should have received a copy of the GNU Lesser General Public 00021 // License along with this library; if not, write to the Free Software 00022 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00023 // 00024 //----------------------------------------------------------------------------- 00025 // 00026 // $Revision: 1802 $ 00027 // $Date: 2008-05-19 11:55:07 +0200 (Mon, 19 May 2008) $ 00028 // 00029 //============================================================================= 00030 00036 //============================================================================= 00037 // 00038 // CLASS JacobiLaplaceSmootherT 00039 // 00040 //============================================================================= 00041 00042 #ifndef OPENMESH_JACOBI_LAPLACE_SMOOTHERT_HH 00043 #define OPENMESH_JACOBI_LAPLACE_SMOOTHERT_HH 00044 00045 00046 //== INCLUDES ================================================================= 00047 00048 #include <OpenMesh/Tools/Smoother/LaplaceSmootherT.hh> 00049 00050 00051 //== NAMESPACES =============================================================== 00052 00053 namespace OpenMesh { 00054 namespace Smoother { 00055 00056 //== CLASS DEFINITION ========================================================= 00057 00061 template <class Mesh> 00062 class JacobiLaplaceSmootherT : public LaplaceSmootherT<Mesh> 00063 { 00064 private: 00065 typedef LaplaceSmootherT<Mesh> Base; 00066 00067 public: 00068 00069 JacobiLaplaceSmootherT( Mesh& _mesh ) : LaplaceSmootherT<Mesh>(_mesh) {} 00070 00071 // override: alloc umbrellas 00072 void smooth(unsigned int _n); 00073 00074 00075 protected: 00076 00077 virtual void compute_new_positions_C0(); 00078 virtual void compute_new_positions_C1(); 00079 00080 00081 private: 00082 00083 OpenMesh::VPropHandleT<typename Mesh::Normal> umbrellas_; 00084 OpenMesh::VPropHandleT<typename Mesh::Normal> squared_umbrellas_; 00085 }; 00086 00087 00088 //============================================================================= 00089 } // namespace Smoother 00090 } // namespace OpenMesh 00091 //============================================================================= 00092 #if defined(OM_INCLUDE_TEMPLATES) && !defined(OPENMESH_JACOBI_LAPLACE_SMOOTHERT_C) 00093 #define OPENMESH_JACOBI_LAPLACE_SMOOTHERT_TEMPLATES 00094 #include "JacobiLaplaceSmootherT.cc" 00095 #endif 00096 //============================================================================= 00097 #endif // OPENMESH_JACOBI_LAPLACE_SMOOTHERT_HH defined 00098 //============================================================================= 00099