minor changes in the code to make it compile correctly
This commit is contained in:
parent
470e156a19
commit
00d485469f
|
@ -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*/)
|
int main(int /*argc*/ , char **/*argv*/)
|
||||||
{
|
{
|
||||||
MyVolume volume;
|
MyVolume volume;
|
||||||
|
|
||||||
typedef vcg::tri::TrivialWalker<MyMesh,MyVolume> MyWalker;
|
typedef vcg::tri::TrivialWalker<MyMesh,MyVolume> MyWalker;
|
||||||
typedef vcg::tri::MarchingCubes<MyMesh, MyWalker> MyMarchingCubes;
|
typedef vcg::tri::MarchingCubes<MyMesh, MyWalker> MyMarchingCubes;
|
||||||
MyWalker walker;
|
MyWalker walker;
|
||||||
|
|
||||||
|
|
||||||
// Simple initialization of the volume with some cool perlin noise
|
// 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 i=0;i<64;i++)
|
||||||
for(int j=0;j<64;j++)
|
for(int j=0;j<64;j++)
|
||||||
for(int k=0;k<64;k++)
|
for(int k=0;k<64;k++)
|
||||||
|
|
Loading…
Reference in New Issue