//=========================================================================== // 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 _CREATORSUTILS_H 00016 #define _CREATORSUTILS_H 00017 00018 00019 #include "GoTools/geometry/SplineCurve.h" 00020 #include "GoTools/geometry/SplineSurface.h" 00021 #include "GoTools/geometry/CurveOnSurface.h" 00022 #include "GoTools/geometry/BsplineBasis.h" 00023 #include "GoTools/geometry/BoundedSurface.h" 00024 #include "boost/smart_ptr.hpp" 00025 #include "GoTools/utils/config.h" 00026 00027 namespace Go { 00028 00030 namespace CreatorsUtils 00031 { 00032 00058 SplineCurve GO_API *getParametricCurve 00059 (const std::vector<boost::shared_ptr<const CurveOnSurface> >& cv); 00060 00065 boost::shared_ptr<Go::SplineCurve> GO_API 00066 createCrossTangent(const Go::CurveOnSurface& cv); 00067 00090 boost::shared_ptr<Go::SplineCurve> GO_API 00091 createCrossTangent(const Go::CurveOnSurface& cv, 00092 boost::shared_ptr<Go::SplineCurve> basis_space_cv, 00093 const Go::SplineCurve* cross_cv_ref, 00094 bool appr_offset_cv = true); 00095 00107 std::vector<Go::Point> GO_API 00108 projectPoint(const Go::ParamSurface* sf, 00109 bool closed_dir_u, bool closed_dir_v, 00110 const Go::Point& space_pt); 00111 00112 boost::shared_ptr<Go::Point> 00113 projectCurvePoint(const ParamSurface* sf, 00114 bool closed_dir_u, bool closed_dir_v, 00115 const Go::ParamCurve* space_cv, double cv_par); 00116 00130 boost::shared_ptr<Go::Point> 00131 projectCurvePoint(const SplineSurface& sf, 00132 bool closed_dir_u, bool closed_dir_v, 00133 const Go::ParamCurve* space_cv, double cv_par); 00134 00135 void GO_API surfaceClosed(const Go::SplineSurface& sf, 00136 bool& closed_dir_u, bool& closed_dir_v, 00137 double closed_tol=1e-06); 00138 00139 void GO_API 00140 fixSeemCurves(boost::shared_ptr<BoundedSurface> bd_sf, 00141 std::vector<boost::shared_ptr<CurveOnSurface> >& loop_cvs, 00142 bool closed_dir_u, bool closed_dir_v, 00143 double tol); 00144 // The user is given the option to overrun the default tolerance epsgeo 00145 // from the boundary_loops with epsgeo*epsgeo_frac. 00146 void GO_API 00147 fixTrimCurves(boost::shared_ptr<Go::BoundedSurface> bd_sf, 00148 double epsgeo_frac = 1.0); 00149 00150 } // of namespace CreatorsUtils. 00151 00152 }; // end namespace Go 00153 00154 00155 00156 #endif // _CREATORSUTILS_H
Generated on Tue Sep 21 15:44:16 2010 for GoTools Core by  doxygen 1.6.3