Skip to content

Commit

Permalink
fix embree sample
Browse files Browse the repository at this point in the history
  • Loading branch information
alemuntoni committed Oct 21, 2022
1 parent 6324253 commit 02d9ecc
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions apps/embree/embree_sample.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ int main( int argc, char **argv )
{
cout << "start" << endl;
MyMesh m;
tri::io::ImporterOFF<MyMesh>::Open(m, "../ExampleMeshes/abominevole.off");//argv[1]);//metti il rferimento ad una mesh
int ret = tri::io::ImporterOFF<MyMesh>::Open(m,"../ExampleMeshes/abominevole.off");
int ret = tri::io::ImporterOFF<MyMesh>::Open(m, argv[1]);
if(ret!=tri::io::ImporterOFF<MyMesh>::NoError)
{
cout<<"Error reading file \n"<<endl;
Expand All @@ -56,6 +55,10 @@ int main( int argc, char **argv )

char *endptr;
int nOfRays = 150; //strtof(argv[2], &endptr);
if (argc > 2) {
nOfRays = std::stoi(argv[2]);
}


MyMesh m2,m3,m4,m5,m6;
vcg::tri::Append<MyMesh,MyMesh>::MeshCopy(m2,m);
Expand Down Expand Up @@ -114,4 +117,4 @@ int main( int argc, char **argv )
cout << "done face selection" << endl;
cout << "Done All" << endl;
return 0;
}
}

0 comments on commit 02d9ecc

Please sign in to comment.