// This file is part of ff3d - http://www.freefem.org/ff3d // Copyright (C) 2001, 2002, 2003 Stéphane Del Pino // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 2, or (at your option) // any later version. // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software Foundation, // Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. // $Id: MeshSimplifier.cpp,v 1.1 2003/04/27 16:57:38 delpinux Exp $ #include #include #include #include template void MeshSimplifier::__proceed(const MeshType& m) { Connectivity connectivity(m.numberOfCells()); ConnectivityBuilder connectivityBuilder(m, connectivity); fferr(0) << __FILE__ << ':' << __LINE__ << ": Not implemented\n"; std::exit(1); } MeshSimplifier::MeshSimplifier(ReferenceCounting originalMesh) { const Mesh& m = static_cast(*originalMesh); switch (m.type()) { case Mesh::surfaceMeshTriangles: { this->__proceed(static_cast(m)); break; } default: { fferr(0) << __FILE__ << ':' << __LINE__ << ": Not implemented\n"; std::exit(1); } } } MeshSimplifier::MeshSimplifier(const MeshSimplifier& m) : MeshGenerator(m) { ; }