//=========================================================================== // 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. //=========================================================================== 00016 #ifndef __CURVATURE_H 00017 #define __CURVATURE_H 00018 00019 00020 #include "GoTools/utils/Point.h" 00021 #include "GoTools/geometry/SplineCurve.h" 00022 #include <vector> 00023 00024 00025 00026 00027 00028 namespace Go 00029 { 00030 00031 // Get the points on a SplineCurve with a given curvature radius 00032 // Result is stored in a vector as parameter values 00033 void curvatureRadiusPoints(const SplineCurve& curve, 00034 double curveRad, 00035 std::vector<double>& pos); 00036 00037 // Get the minimal curvature radius, and the parameter value of the point 00038 // with the minimal curvature radius 00039 void minimalCurvatureRadius(const SplineCurve& curve, 00040 double& mincurv, 00041 double& pos); 00042 00043 } // namespace Go 00044 00045 00046 00047 #endif // #ifndef __CURVATURE_H 00048