Update715_MeshImplicitFunction (#2090)

* Update715_MeshImplicitFunction #2088

Replace the copyleft marching_cubes function with native the libigl one.

* Fix static lib compilation for sample 715
This commit is contained in:
MotivaCG
2023-02-04 11:14:25 -05:00
committed by GitHub
parent 610a495be4
commit 70dad85a27
+1 -4
View File
@@ -1,4 +1,3 @@
#include <igl/copyleft/marching_cubes.h>
#include <igl/unique_simplices.h>
#include <igl/dual_contouring.h>
#include <igl/get_seconds.h>
@@ -137,10 +136,8 @@ int main(int argc, char * argv[])
igl::dual_contouring(
f,f_grad,step,Gf,GV,GI2,constrained,triangles,root_finding,V,Q);
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();
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());
}else
{