//=========================================================================== // 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 _CURVATUREANALYSIS_H 00014 #define _CURVATUREANALYSIS_H 00015 00016 00017 #include "GoTools/geometry/ParamSurface.h" 00018 #include "GoTools/utils/Point.h" 00019 00022 00023 namespace Go 00024 { 00040 void computeFirstFundamentalForm(const ParamSurface& sf, 00041 double u, double v, int derivs, 00042 std::vector<double>& form); 00043 00058 void computeSecondFundamentalForm(const ParamSurface& sf, 00059 double u, double v, 00060 double form1[3], 00061 double form2[3]); 00062 00069 void curvatures(const ParamSurface& sf, 00070 double u, double v, 00071 double& K, double& H); 00072 00073 void principalCurvatures(const ParamSurface& sf, 00074 double u, double v, 00075 double& k1, Point& d1, 00076 double& k2, Point& d2); 00077 00078 void minimalCurvatureRadius(const ParamSurface& sf, 00079 double tolerance, 00080 double& mincurv, 00081 double& pos_u, 00082 double& pos_v, 00083 double degenerate_eps, 00084 double curv_tol = 1.0e-3); 00085 00086 00087 void evaluateMinCurvatureRadius(const ParamSurface& sf, 00088 double star_u, double end_u, double start_v, double end_v, 00089 double tolerance, 00090 std::vector<double>& param_u, std::vector<double>& param_v, 00091 std::vector<std::vector<double> >& curvs, 00092 double& mincurv, 00093 double& minpos_u, 00094 double& minpos_v, 00095 bool initialize); 00096 00097 00098 00099 00100 } // namespace Go 00101 00102 #endif // _CURVATUREANALYSIS_H 00103
Generated on Tue Sep 21 15:44:17 2010 for GoTools Core by  doxygen 1.6.3