fix file paths, add example model into data folder

This commit is contained in:
iyaz 2013-05-07 01:12:02 +03:00
parent 0233a24560
commit 5fcc633b9b
5 changed files with 2455 additions and 20 deletions

View File

@ -32,12 +32,10 @@ Iterator next_helper(Iterator it, std::size_t n) {
int main()
{
Polyhedron mesh;
std::ifstream input("models/plane.off");
std::ifstream input("data/plane.off");
if (input)
input >> mesh;
else{
std::cerr<< "Cannot open models/plane.off\n";
if ( !input || !(input >> mesh) || mesh.empty() ) {
std::cerr<< "Cannot open data/plane.off" << std::endl;
return 1;
}

View File

@ -37,12 +37,10 @@ typedef CGAL::Deform_mesh<Polyhedron, Vertex_index_map, Edge_index_map, CGAL::OR
int main()
{
Polyhedron mesh;
std::ifstream input("models/plane.off");
std::ifstream input("data/plane.off");
if (input)
input >> mesh;
else{
std::cerr << "Cannot open models/plane.off\n";
if ( !input || !(input >> mesh) || mesh.empty() ) {
std::cerr << "Cannot open data/plane.off" << std::endl;
return 1;
}

File diff suppressed because it is too large Load Diff

View File

@ -37,12 +37,10 @@ typedef CGAL::Deform_mesh<Polyhedron, Vertex_index_map, Edge_index_map> Deform_m
int main()
{
Polyhedron mesh;
std::ifstream input("models/plane.off");
std::ifstream input("data/plane.off");
if (input)
input >> mesh;
else{
std::cerr<< "Cannot open models/plane.off";
if ( !input || !(input >> mesh) || mesh.empty() ) {
std::cerr<< "Cannot open data/plane.off";
return 1;
}

View File

@ -58,12 +58,10 @@ Iterator next_helper(Iterator it, std::size_t n) {
int main()
{
Polyhedron mesh;
std::ifstream input("models/plane.off");
std::ifstream input("data/plane.off");
if (input)
input >> mesh;
else{
std::cerr<< "Cannot open models/plane.off";
if ( !input || !(input >> mesh) || mesh.empty() ) {
std::cerr<< "Cannot open data/plane.off";
return 1;
}