//=========================================================================== // GoTools Core - SINTEF Geometry Tools Core library, version 2.0.1 // // Copyright (C) 2000-2007, 2010 SINTEF ICT, Applied Mathematics, Norway. // // 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 version 2 of the License. // // 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. // // Contact information: E-mail: tor.dokken@sintef.no // SINTEF ICT, Department of Applied Mathematics, // P.O. Box 124 Blindern, // 0314 Oslo, Norway. // // Other licenses are also available for this software, notably licenses // for: // - Building commercial software. // - Building software whose source code you wish to keep private. //=========================================================================== 00015 #ifndef _LOOPUTILS_H 00016 #define _LOOPUTILS_H 00017 00018 00019 #include "GoTools/geometry/SplineCurve.h" 00020 #include "GoTools/geometry/CurveOnSurface.h" 00021 #include "GoTools/geometry/ParamSurface.h" 00022 #include "GoTools/geometry/BoundedSurface.h" 00023 00024 #include <vector> 00025 #include <boost/smart_ptr.hpp> 00026 00027 namespace Go{ 00028 00031 namespace LoopUtils { 00035 void representAsSurfaceCurves(std::vector< boost::shared_ptr<ParamCurve> >& curves, 00036 boost::shared_ptr<BoundedSurface> surf, 00037 std::vector<boost::shared_ptr<CurveOnSurface> >& cvs_on_sf); 00038 00044 bool loopIsCCW(const std::vector<boost::shared_ptr<Go::SplineCurve> >& 00045 simple_par_loop, 00046 double int_tol); 00047 00054 bool 00055 paramIsCCW(const std::vector< boost::shared_ptr<Go::CurveOnSurface> >& loop, 00056 double int_tol); 00057 00058 bool loopIsCCW(const CurveLoop& loop, double int_tol); 00059 00061 00075 bool firstLoopInsideSecond(const std::vector<boost::shared_ptr<Go::CurveOnSurface> >& first_loop, 00076 const std::vector<boost::shared_ptr<Go::CurveOnSurface> >& second_loop, 00077 double loop_tol, double int_tol); 00078 00079 } // end namespace Go 00080 } // end namespace LoopUtils 00081 00082 #endif // _LOOPUTILS_H 00083
Generated on Tue Sep 21 15:44:17 2010 for GoTools Core by  doxygen 1.6.3