//=========================================================================== // 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 _CLOSESTPTCURVES_H 00016 #define _CLOSESTPTCURVES_H 00017 00023 #include "GoTools/geometry/ParamCurve.h" 00024 00025 namespace Go { 00026 00037 void closestPtCurves(const ParamCurve* cv1, const ParamCurve* cv2, 00038 double& par1, double& par2, double& dist, 00039 Point& ptc1, Point& ptc2); 00040 00041 /* 00042 void closestPtCurves(ParamCurve* cv1, ParamCurve*cv2, double tmin1, 00043 double tmax1, double tmin2, double tmax2, 00044 double& par1, double& par2, double& dist, 00045 Point& ptc1, Point& ptc2) 00046 */ 00047 00067 void closestPtCurves(const ParamCurve* cv1, const ParamCurve* cv2, double tmin1, 00068 double tmax1, double tmin2, double tmax2, 00069 double seed1, double seed2, double& par1, double& par2, 00070 double& dist, Point& ptc1, Point& ptc2); 00071 00078 void computeSeedCvCv(const SplineCurve* pc1, const SplineCurve* pc2, 00079 double& seed1, double& seed2); 00080 00081 00085 void insideParamDomain(double& delta, double acoef, double astart, 00086 double aend); 00087 00088 00118 void nextStep(double& cdist, double& cdiff1, double& cdiff2, 00119 std::vector<Point>& eval1, std::vector<Point>& eval2); 00120 00121 } // namespace Go 00122 00123 #endif // _CLOSESTPTCURVES_H
Generated on Tue Sep 21 15:44:17 2010 for GoTools Core by  doxygen 1.6.3