minor changes in the code to make it compile correctly

This commit is contained in:
Nico Pietroni 2015-06-15 14:43:27 +00:00
parent 470e156a19
commit 00d485469f
1 changed files with 5 additions and 4 deletions

View File

@ -45,19 +45,20 @@ class MyMesh : public vcg::tri::TriMesh< std::vector< MyVertex>, std::vector< M
typedef SimpleVolume<SimpleVoxel> MyVolume;
typedef SimpleVolume<SimpleVoxel<float> > MyVolume;
int main(int /*argc*/ , char **/*argv*/)
{
MyVolume volume;
typedef vcg::tri::TrivialWalker<MyMesh,MyVolume> MyWalker;
typedef vcg::tri::MarchingCubes<MyMesh, MyWalker> MyMarchingCubes;
MyWalker walker;
typedef vcg::tri::MarchingCubes<MyMesh, MyWalker> MyMarchingCubes;
MyWalker walker;
// Simple initialization of the volume with some cool perlin noise
volume.Init(Point3i(64,64,64));
vcg::Box3f bb(vcg::Point3f(-1,-1,-1),vcg::Point3f(1,1,1));
volume.Init(Point3i(64,64,64),bb);
for(int i=0;i<64;i++)
for(int j=0;j<64;j++)
for(int k=0;k<64;k++)