00001 /*************************************************************************** 00002 * Copyright (c) 2007 * 00003 * Joachim Zettler <Joachim.Zettler@gmx.de> * 00004 * * 00005 * This file is part of the FreeCAD CAx development system. * 00006 * * 00007 * This library is free software; you can redistribute it and/or * 00008 * modify it under the terms of the GNU Library General Public * 00009 * License as published by the Free Software Foundation; either * 00010 * version 2 of the License, or (at your option) any later version. * 00011 * * 00012 * This library is distributed in the hope that it will be useful, * 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00015 * GNU Library General Public License for more details. * 00016 * * 00017 * You should have received a copy of the GNU Library General Public * 00018 * License along with this library; see the file COPYING.LIB. If not, * 00019 * write to the Free Software Foundation, Inc., 59 Temple Place, * 00020 * Suite 330, Boston, MA 02111-1307, USA * 00021 * * 00022 ***************************************************************************/ 00027 #ifndef STUFF_H 00028 #define STUFF_H 00029 00030 #include <TopoDS_Wire.hxx> 00031 #include <TopoDS_Edge.hxx> 00032 #include <TopoDS_Face.hxx> 00033 00042 bool inline FloatWirePairHuge(const std::pair<float,TopoDS_Wire>& _Left, const std::pair<float,TopoDS_Wire>& _Right) 00043 { 00044 return _Left.first > _Right.first; 00045 } 00046 00047 00056 bool inline FloatHuge(const float _Left, const float _Right) 00057 { 00058 return _Left > _Right; 00059 } 00060 00062 struct edge_container 00063 { 00064 TopoDS_Edge edge; 00065 gp_Pnt firstPoint; 00066 gp_Pnt lastPoint; 00067 00068 }; 00069 00071 struct projectPointContainer 00072 { 00073 gp_Pnt point; 00074 gp_Dir normalvector; 00075 TopoDS_Face face; 00076 }; 00077 00078 #endif /*DEFINE STUFF_H*/ 00079