Ver código fonte

marching cubes use header

Former-commit-id: f9449c26ad72cf629b647c800d955fe0615c8a24
Alec Jacobson 9 anos atrás
pai
commit
845c5d7ef6
2 arquivos alterados com 4 adições e 1 exclusões
  1. 1 0
      include/igl/marching_cubes.cpp
  2. 3 1
      include/igl/marching_cubes.h

+ 1 - 0
include/igl/marching_cubes.cpp

@@ -24,6 +24,7 @@
  \*===========================================================================*/
 
 #include "marching_cubes.h"
+#include "marching_cubes_tables.h"
 #include <map>
 
 extern int edgeTable[256];

+ 3 - 1
include/igl/marching_cubes.h

@@ -18,7 +18,6 @@ namespace igl
   // points, and generates vertices and faces
   //
   // Input:
-  //  xres, yres, zres  resolutions of the grid in x,y,z dimensions
   //  values  #number_of_grid_points x 1 array -- the scalar values of an
   //    implicit function defined on the grid points (<0 in the inside of the
   //    surface, 0 on the border, >0 outside)
@@ -30,6 +29,9 @@ namespace igl
   //      z = index / (xres -1) / (yres -1) ).
   //      where x,y,z index x, y, z dimensions
   //      i.e. index = x + y*xres + z*xres*yres
+  //  xres  resolutions of the grid in x dimension
+  //  yres  resolutions of the grid in y dimension
+  //  zres  resolutions of the grid in z dimension
   // Output:
   //   vertices  #V by 3 list of mesh vertex positions
   //   faces  #F by 3 list of mesh triangle indices