00001 /****************************************************************************** 00002 * SOFA, Simulation Open-Framework Architecture, version 1.0 beta 3 * 00003 * (c) 2006-2008 MGH, INRIA, USTL, UJF, CNRS * 00004 * * 00005 * This library is free software; you can redistribute it and/or modify it * 00006 * under the terms of the GNU Lesser General Public License as published by * 00007 * the Free Software Foundation; either version 2.1 of the License, or (at * 00008 * your option) any later version. * 00009 * * 00010 * This library is distributed in the hope that it will be useful, but WITHOUT * 00011 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * 00012 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License * 00013 * for more details. * 00014 * * 00015 * You should have received a copy of the GNU Lesser General Public License * 00016 * along with this library; if not, write to the Free Software Foundation, * 00017 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * 00018 ******************************************************************************* 00019 * SOFA :: Modules * 00020 * * 00021 * Authors: The SOFA Team and external contributors (see Authors.txt) * 00022 * * 00023 * Contact information: contact@sofa-framework.org * 00024 ******************************************************************************/ 00025 #include <sofa/component/forcefield/TrianglePressureForceField.inl> 00026 #include <sofa/core/ObjectFactory.h> 00027 #include <fstream> // for reading the file 00028 #include <iostream> //for debugging 00029 #include <vector> 00030 #include <set> 00031 #include <sofa/defaulttype/Vec3Types.h> 00032 00033 #ifdef _WIN32 00034 #include <windows.h> 00035 #endif 00036 00037 // #define DEBUG_TRIANGLEFEM 00038 00039 namespace sofa 00040 { 00041 00042 namespace component 00043 { 00044 00045 namespace forcefield 00046 { 00047 00048 using namespace sofa::defaulttype; 00049 00050 using std::cerr; 00051 using std::cout; 00052 using std::endl; 00053 00054 00055 using namespace sofa::defaulttype; 00056 00057 SOFA_DECL_CLASS(TrianglePressureForceField) 00058 00059 int TrianglePressureForceFieldClass = core::RegisterObject("TrianglePressure") 00060 #ifndef SOFA_FLOAT 00061 .add< TrianglePressureForceField<Vec3dTypes> >() 00062 #endif 00063 #ifndef SOFA_DOUBLE 00064 .add< TrianglePressureForceField<Vec3fTypes> >() 00065 #endif 00066 ; 00067 00068 #ifndef SOFA_FLOAT 00069 template class TrianglePressureForceField<Vec3dTypes>; 00070 #endif 00071 #ifndef SOFA_DOUBLE 00072 template class TrianglePressureForceField<Vec3fTypes>; 00073 #endif 00074 00075 00076 } // namespace forcefield 00077 00078 } // namespace component 00079 00080 } // namespace sofa
1.5.7.1