Browse Source

Update715_MeshImplicitFunction (#2090)

* Update715_MeshImplicitFunction #2088

Replace the copyleft marching_cubes function with native the libigl one.

* Fix static lib compilation for sample 715
MotivaCG 2 years ago
parent
commit
70dad85a27
1 changed files with 1 additions and 4 deletions
  1. 1 4
      tutorial/715_MeshImplicitFunction/main.cpp

+ 1 - 4
tutorial/715_MeshImplicitFunction/main.cpp

@@ -1,4 +1,3 @@
-#include <igl/copyleft/marching_cubes.h>
 #include <igl/unique_simplices.h>
 #include <igl/unique_simplices.h>
 #include <igl/dual_contouring.h>
 #include <igl/dual_contouring.h>
 #include <igl/get_seconds.h>
 #include <igl/get_seconds.h>
@@ -137,10 +136,8 @@ int main(int argc, char * argv[])
       igl::dual_contouring(
       igl::dual_contouring(
         f,f_grad,step,Gf,GV,GI2,constrained,triangles,root_finding,V,Q);
         f,f_grad,step,Gf,GV,GI2,constrained,triangles,root_finding,V,Q);
       printf("  %5f secs dual contouring\n",t_Gf+tictoc());
       printf("  %5f secs dual contouring\n",t_Gf+tictoc());
-      // Could use igl::marching_cubes once
-      // https://github.com/libigl/libigl/pull/1687 is merged
       tictoc();
       tictoc();
-      igl::copyleft::marching_cubes(Gf,GV,GI,mcV, mcF);
+      igl::marching_cubes(Gf,GV,GI,0.0,mcV,mcF);
       printf("  %5f secs marching cubes\n",t_Gf+tictoc());
       printf("  %5f secs marching cubes\n",t_Gf+tictoc());
     }else
     }else
     {
     {