mirror of https://github.com/CGAL/cgal
fix file paths, add example model into data folder
This commit is contained in:
parent
0233a24560
commit
5fcc633b9b
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue