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)
|
||||
{
|
||||
if (argc !=2){
|
||||
std::cerr << "Usage: " << argv[0] << " input.OFF" << std::endl;
|
||||
return 1;
|
||||
}
|
||||
|
||||
// create and read Polyhedron
|
||||
Polyhedron mesh;
|
||||
std::ifstream input(argv[1]);
|
||||
|
||||
std::ifstream input("data/cactus.off");
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1 +0,0 @@
|
|||
camel.off
|
||||
|
|
@ -36,18 +36,12 @@ private:
|
|||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
if (argc !=2){
|
||||
std::cerr << "Usage: " << argv[0] << " input.OFF" << std::endl;
|
||||
return 1;
|
||||
}
|
||||
|
||||
// create and read Polyhedron
|
||||
Polyhedron mesh;
|
||||
std::ifstream input(argv[1]);
|
||||
|
||||
std::ifstream input("data/cactus.off");
|
||||
if ( !input || !(input >> mesh) || mesh.empty() ){
|
||||
std::cerr << argv[1] << " is not a valid off file." << std::endl;
|
||||
return 1;
|
||||
std::cerr << "Not a valid off file." << std::endl;
|
||||
return 1;
|
||||
}
|
||||
|
||||
// assign id field for each facet
|
||||
|
|
|
|||
|
|
@ -1 +0,0 @@
|
|||
camel.off
|
||||
|
|
@ -13,18 +13,12 @@ typedef CGAL::Polyhedron_3<Kernel> Polyhedron;
|
|||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
if (argc !=2){
|
||||
std::cerr << "Usage: " << argv[0] << " input.off" << std::endl;
|
||||
return 1;
|
||||
}
|
||||
|
||||
// create and read Polyhedron
|
||||
Polyhedron mesh;
|
||||
std::ifstream input(argv[1]);
|
||||
|
||||
std::ifstream input("data/cactus.off");
|
||||
if ( !input || !(input >> mesh) || mesh.empty() ){
|
||||
std::cerr << argv[1] << " is not a valid off file." << std::endl;
|
||||
return 1;
|
||||
std::cerr << "Not a valid off file." << std::endl;
|
||||
return 1;
|
||||
}
|
||||
|
||||
const int number_of_rays = 20; // cast 30 rays per facet
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
|
|
@ -1 +0,0 @@
|
|||
camel.off
|
||||
|
|
@ -13,18 +13,12 @@ typedef CGAL::Polyhedron_3<Kernel> Polyhedron;
|
|||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
if (argc !=2){
|
||||
std::cerr << "Usage: " << argv[0] << " input.OFF" << std::endl;
|
||||
return 1;
|
||||
}
|
||||
|
||||
// create and read Polyhedron
|
||||
Polyhedron mesh;
|
||||
std::ifstream input(argv[1]);
|
||||
|
||||
std::ifstream input("data/cactus.off");
|
||||
if ( !input || !(input >> mesh) || mesh.empty() ){
|
||||
std::cerr << argv[1] << " is not a valid off file." << std::endl;
|
||||
return 1;
|
||||
std::cerr << "Not a valid off file." << std::endl;
|
||||
return 1;
|
||||
}
|
||||
|
||||
// create a property-map for sdf values (it is an adaptor for this case)
|
||||
|
|
|
|||
Loading…
Reference in New Issue