//=========================================================================== // 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. //=========================================================================== 00013 #ifndef _SURFACETOOLS_H 00014 #define _SURFACETOOLS_H 00015 00016 #include "GoTools/geometry/SplineSurface.h" 00017 #include "GoTools/geometry/SplineCurve.h" 00018 #include "GoTools/geometry/CurveOnSurface.h" 00019 #include "GoTools/geometry/CurveLoop.h" 00020 00021 00022 // Free functions operating on parametric surfaces 00023 00024 namespace Go 00025 { 00026 00027 // Fetch the outer boundary loop of a parametric surface 00028 CurveLoop outerBoundarySfLoop(boost::shared_ptr<ParamSurface> surf, 00029 double degenerate_epsilon); 00030 00031 // Fetch all boundary loops of a parametric surface 00032 std::vector<CurveLoop> allBoundarySfLoops(boost::shared_ptr<ParamSurface> surf, 00033 double degenerate_epsilon); 00034 00035 // Fetch all boundary loops of a parametric surface including degenerate 00036 // curves 00037 std::vector<CurveLoop> 00038 absolutelyAllBoundarySfLoops(boost::shared_ptr<ParamSurface> surf, 00039 double degenerate_epsilon); 00040 // Iterate to an optimal corner where a number of surfaces meet 00041 // Positions on elementary surfaces are emphasized 00042 void 00043 iterateCornerPos(Point& vertex, 00044 std::vector<std::pair<boost::shared_ptr<ParamSurface>, Point> > sfs, 00045 double tol); 00046 00047 bool cornerToCornerSfs(boost::shared_ptr<ParamSurface> sf1, 00048 boost::shared_ptr<CurveOnSurface> sf_cv1, 00049 boost::shared_ptr<ParamSurface> sf2, 00050 boost::shared_ptr<CurveOnSurface> sf_cv2, 00051 double tol); 00052 00053 bool getSfAdjacencyInfo(boost::shared_ptr<ParamSurface> sf1, 00054 boost::shared_ptr<CurveOnSurface> sf_cv1, 00055 boost::shared_ptr<ParamSurface> sf2, 00056 boost::shared_ptr<CurveOnSurface> sf_cv2, 00057 double tol, 00058 int& bd1, int& bd2, bool& same_orient); 00059 00060 bool getCorrCoefEnum(boost::shared_ptr<SplineSurface> sf1, 00061 boost::shared_ptr<SplineSurface> sf2, 00062 int bd1, int bd2, bool same_orient, 00063 std::vector<std::pair<int,int> >& enumeration); 00064 00065 bool getCoefEnumeration(boost::shared_ptr<SplineSurface> sf, int bd, 00066 std::vector<int>& enumeration); 00067 00068 } // namespace Go 00069 00070 00071 00072 00073 00074 #endif // _SURFACETOOLS_H 00075
Generated on Tue Sep 21 15:44:17 2010 for GoTools Core by  doxygen 1.6.3