Эх сурвалжийг харах

fixed 501_Integrable to use the updated matchings (with the is_symmetric flag)

Former-commit-id: bf2f1fbefc96f19488cc41ec3021462972f42806
Olga Diamanti 9 жил өмнө
parent
commit
825ba923cb

+ 2 - 2
tutorial/510_Integrable/main.cpp

@@ -595,7 +595,7 @@ bool key_down(igl::viewer::Viewer& viewer, unsigned char key, int modifier)
     // Compute curl_minimizing matchings and curl
     printf("--Matchings and curl--\n");
     Eigen::MatrixXi match_ab, match_ba;  // matchings across interior edges
-    double avgCurl = igl::polyvector_field_matchings(two_pv, V, F, true, match_ab, match_ba, curl);
+    double avgCurl = igl::polyvector_field_matchings(two_pv, V, F, true, true, match_ab, match_ba, curl);
     double maxCurl = curl.maxCoeff();
     printf("curl -- max: %.5g, avg: %.5g\n", maxCurl,  avgCurl);
     // Compute singularities
@@ -662,7 +662,7 @@ int main(int argc, char *argv[])
   // Compute curl_minimizing matchings and curl
   Eigen::MatrixXi match_ab, match_ba;  // matchings across interior edges
   printf("--Matchings and curl--\n");
-  double avgCurl = igl::polyvector_field_matchings(two_pv_ori, V, F, true, match_ab, match_ba, curl_ori);
+  double avgCurl = igl::polyvector_field_matchings(two_pv_ori, V, F, true, true, match_ab, match_ba, curl_ori);
   double maxCurl = curl_ori.maxCoeff();
   printf("original curl -- max: %.5g, avg: %.5g\n", maxCurl,  avgCurl);