00001 /*************************************************************************** 00002 * Copyright (c) 2007 * 00003 * Joachim Zettler <Joachim.Zettler@gmx.de> * 00004 * Human Rezai <human@mytum.de> * 00005 * * 00006 * This file is part of the FreeCAD CAx development system. * 00007 * * 00008 * This library is free software; you can redistribute it and/or * 00009 * modify it under the terms of the GNU Library General Public * 00010 * License as published by the Free Software Foundation; either * 00011 * version 2 of the License, or (at your option) any later version. * 00012 * * 00013 * This library is distributed in the hope that it will be useful, * 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00016 * GNU Library General Public License for more details. * 00017 * * 00018 * You should have received a copy of the GNU Library General Public * 00019 * License along with this library; see the file COPYING.LIB. If not, * 00020 * write to the Free Software Foundation, Inc., 59 Temple Place, * 00021 * Suite 330, Boston, MA 02111-1307, USA * 00022 * * 00023 ***************************************************************************/ 00024 00025 00026 #ifndef DEVIATION_H 00027 #define DEVIATION_H 00028 00029 #include "best_fit.h" 00030 #include "SpringbackCorrection.h" 00031 #include <string.h> 00032 #include <QString> 00033 00034 class CamExport Deviation : public SpringbackCorrection 00035 { 00036 public: 00037 Deviation(); 00038 ~Deviation(); 00039 00040 bool GenNormals(); 00041 void ImportGeometry(const TopoDS_Shape& aShape, const MeshCore::MeshKernel& aMesh); 00042 void WriteOutput(const QString &dateiname); 00043 bool Compute(); 00044 00045 TopoDS_Shape m_Cad; // CAD-Geometrie 00046 MeshCore::MeshKernel m_MeshCad; 00047 MeshCore::MeshKernel m_Mesh; 00048 00049 std::vector<Base::Vector3f> m_pnts, m_nlvec; 00050 }; 00051 00052 00053 #endif //DEVIATION_H