mirror of https://github.com/CGAL/cgal
simplify by reading one predefined off file
This commit is contained in:
parent
5544dc6a8d
commit
0bc3c61e13
File diff suppressed because it is too large
Load Diff
|
|
@ -1 +0,0 @@
|
||||||
camel.off
|
|
||||||
|
|
@ -13,17 +13,11 @@ typedef CGAL::Polyhedron_3<Kernel> Polyhedron;
|
||||||
|
|
||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
if (argc !=2){
|
|
||||||
std::cerr << "Usage: " << argv[0] << " input.OFF" << std::endl;
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
// create and read Polyhedron
|
// create and read Polyhedron
|
||||||
Polyhedron mesh;
|
Polyhedron mesh;
|
||||||
std::ifstream input(argv[1]);
|
std::ifstream input("data/cactus.off");
|
||||||
|
|
||||||
if ( !input || !(input >> mesh) || mesh.empty() ){
|
if ( !input || !(input >> mesh) || mesh.empty() ){
|
||||||
std::cerr << argv[1] << " is not a valid off file." << std::endl;
|
std::cerr << "Not a valid off file." << std::endl;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
camel.off
|
|
||||||
|
|
@ -36,17 +36,11 @@ private:
|
||||||
|
|
||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
if (argc !=2){
|
|
||||||
std::cerr << "Usage: " << argv[0] << " input.OFF" << std::endl;
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
// create and read Polyhedron
|
// create and read Polyhedron
|
||||||
Polyhedron mesh;
|
Polyhedron mesh;
|
||||||
std::ifstream input(argv[1]);
|
std::ifstream input("data/cactus.off");
|
||||||
|
|
||||||
if ( !input || !(input >> mesh) || mesh.empty() ){
|
if ( !input || !(input >> mesh) || mesh.empty() ){
|
||||||
std::cerr << argv[1] << " is not a valid off file." << std::endl;
|
std::cerr << "Not a valid off file." << std::endl;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
camel.off
|
|
||||||
|
|
@ -13,17 +13,11 @@ typedef CGAL::Polyhedron_3<Kernel> Polyhedron;
|
||||||
|
|
||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
if (argc !=2){
|
|
||||||
std::cerr << "Usage: " << argv[0] << " input.off" << std::endl;
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
// create and read Polyhedron
|
// create and read Polyhedron
|
||||||
Polyhedron mesh;
|
Polyhedron mesh;
|
||||||
std::ifstream input(argv[1]);
|
std::ifstream input("data/cactus.off");
|
||||||
|
|
||||||
if ( !input || !(input >> mesh) || mesh.empty() ){
|
if ( !input || !(input >> mesh) || mesh.empty() ){
|
||||||
std::cerr << argv[1] << " is not a valid off file." << std::endl;
|
std::cerr << "Not a valid off file." << std::endl;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
|
|
@ -1 +0,0 @@
|
||||||
camel.off
|
|
||||||
|
|
@ -13,17 +13,11 @@ typedef CGAL::Polyhedron_3<Kernel> Polyhedron;
|
||||||
|
|
||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
if (argc !=2){
|
|
||||||
std::cerr << "Usage: " << argv[0] << " input.OFF" << std::endl;
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
// create and read Polyhedron
|
// create and read Polyhedron
|
||||||
Polyhedron mesh;
|
Polyhedron mesh;
|
||||||
std::ifstream input(argv[1]);
|
std::ifstream input("data/cactus.off");
|
||||||
|
|
||||||
if ( !input || !(input >> mesh) || mesh.empty() ){
|
if ( !input || !(input >> mesh) || mesh.empty() ){
|
||||||
std::cerr << argv[1] << " is not a valid off file." << std::endl;
|
std::cerr << "Not a valid off file." << std::endl;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue