00001 #ifndef __MEAN_VALUE_COORDINATES_HH_ 00002 #define __MEAN_VALUE_COORDINATES_HH_ 00003 00004 #include "Common.hh" 00005 00006 #include <list> 00007 00008 00022 bool calc_triangle_barycentric_coordinates(OriginalMesh::Point const & pt, 00023 OriginalMesh::Point const & triangle_p1, 00024 OriginalMesh::Point const & triangle_p2, 00025 OriginalMesh::Point const & triangle_p3, 00026 double & lambda1, 00027 double & lambda2, 00028 double & lambda3); 00029 00030 00036 void calc_mvc_from_pt(OriginalMesh::Point const & pt, std::vector<OriginalMesh::Point> const & anchor_pts, std::vector<double>& params); 00037 //void calc_mvc_from_pt(OriginalMesh::Point const & pt, OriginalMesh::Point const & seed, std::vector<OriginalMesh::Point> const & anchor_pts, std::vector<double>& params); 00038 00045 OriginalMesh::Point calc_pt_from_mvc(std::vector<OriginalMesh::Point> const &anchor_pts, std::vector<double> const ¶ms); 00046 //OriginalMesh::Point calc_pt_from_mvc(Point const & seed, std::vector<OriginalMesh::Point> const &anchor_pts, std::vector<double> const ¶ms); 00047 //double calcul_mu( Point const & e_i, Point const & e_j, Point const & e_k ); 00048 00049 00050 00051 00052 00053 00054 00055 00056 00057 00058 00059 00060 #endif