//=========================================================================== // 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 _GOINTERSECTIONS_H 00016 #define _GOINTERSECTIONS_H 00017 00021 00022 #include "GoTools/geometry/SplineCurve.h" 00023 #include <utility> 00024 00025 namespace Go 00026 { 00027 00030 enum { pretop_UNDEF, 00031 pretop_IN, 00032 pretop_OUT, 00033 pretop_ON, 00034 pretop_AT }; 00035 00036 00037 // Intersect a curve with a point 00038 void intersectCurvePoint(const ParamCurve* crv, Point pnt, double epsge, 00039 std::vector<double>& intersections, 00040 std::vector<std::pair<double, double> >& int_crvs); 00041 00054 void intersect2Dcurves(const ParamCurve* cv1, 00055 const ParamCurve* cv2, 00056 double epsge, 00057 std::vector<std::pair<double,double> >& intersections, 00058 std::vector<int>& pretopology, 00059 std::vector<std::pair<std::pair<double,double>, std::pair<double,double> > >& int_crvs); 00060 00069 void intersectcurves(SplineCurve* cv1, SplineCurve* cv2, double epsge, 00070 std::vector<std::pair<double,double> >& intersections); 00071 00079 void closestPtCurves(SplineCurve* cv1, SplineCurve* cv2, double epsge, 00080 double& par1, double& par2, double& dist); 00081 00082 } // namespace Go 00083 00084 00085 #endif // _GOINTERSECTIONS_H
Generated on Tue Sep 21 15:44:17 2010 for GoTools Core by  doxygen 1.6.3