mirror of https://github.com/CGAL/cgal
remove non used examples
they have nothing original compared to published ones
This commit is contained in:
parent
78aca0a711
commit
7ab0508b4c
|
|
@ -1,2 +0,0 @@
|
|||
examples/Skin_surface_3/NGHK_skin_surface_simple.cpp
|
||||
examples/Skin_surface_3/NGHK_skin_surface_subdiv.cpp
|
||||
|
|
@ -1,55 +0,0 @@
|
|||
// #define CGAL_PROFILE
|
||||
// #define CGAL_NO_ASSERTIONS
|
||||
|
||||
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
|
||||
#include <CGAL/Skin_surface_3.h>
|
||||
#include <CGAL/Polyhedron_3.h>
|
||||
#include <CGAL/mesh_skin_surface_3.h>
|
||||
#include <CGAL/Skin_surface_polyhedral_items_3.h>
|
||||
#include <list>
|
||||
|
||||
#include <fstream>
|
||||
#include "skin_surface_writer.h"
|
||||
|
||||
typedef CGAL::Exact_predicates_inexact_constructions_kernel K;
|
||||
typedef CGAL::Skin_surface_traits_3<K> Traits;
|
||||
typedef CGAL::Skin_surface_3<Traits> Skin_surface_3;
|
||||
typedef Skin_surface_3::FT FT;
|
||||
typedef Skin_surface_3::Weighted_point Weighted_point;
|
||||
typedef Weighted_point::Point Bare_point;
|
||||
typedef CGAL::Polyhedron_3<
|
||||
CGAL::Simple_cartesian<double>,
|
||||
CGAL::Skin_surface_polyhedral_items_3<Skin_surface_3>
|
||||
> Polyhedron;
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
const char *filename;
|
||||
if (argc < 2) {
|
||||
filename = "data/caffeine.cin";
|
||||
} else {
|
||||
filename = argv[1];
|
||||
}
|
||||
|
||||
std::list<Weighted_point> l;
|
||||
FT shrinkfactor = 0.5;
|
||||
|
||||
Weighted_point wp;
|
||||
std::ifstream in(filename);
|
||||
while (in >> wp) l.push_back(wp);
|
||||
|
||||
Skin_surface_3 skin_surface(l.begin(), l.end(), shrinkfactor,
|
||||
false, Traits(), false);
|
||||
|
||||
Polyhedron p;
|
||||
|
||||
std::cout << "Meshing ..." << std::endl;
|
||||
CGAL::mesh_skin_surface_3(skin_surface, p);
|
||||
|
||||
std::cout << "Is closed: " << (p.is_closed() ? "Yes" : "No") << std::endl;
|
||||
|
||||
std::ofstream out("mesh.off");
|
||||
//write_polyhedron_with_normals(p, skin_surface, out);
|
||||
out << p;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -1,56 +0,0 @@
|
|||
//#define CGAL_PROFILE
|
||||
//#define CGAL_NO_ASSERTIONS
|
||||
|
||||
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
|
||||
#include <CGAL/Skin_surface_3.h>
|
||||
#include <CGAL/Polyhedron_3.h>
|
||||
#include <CGAL/mesh_skin_surface_3.h>
|
||||
#include <CGAL/Skin_surface_polyhedral_items_3.h>
|
||||
#include <list>
|
||||
|
||||
#include <fstream>
|
||||
#include "skin_surface_writer.h"
|
||||
|
||||
typedef CGAL::Exact_predicates_inexact_constructions_kernel K;
|
||||
typedef CGAL::Skin_surface_traits_3<K> Traits;
|
||||
typedef CGAL::Skin_surface_3<Traits> Skin_surface_3;
|
||||
typedef Skin_surface_3::FT FT;
|
||||
typedef Skin_surface_3::Weighted_point Weighted_point;
|
||||
typedef Weighted_point::Point Bare_point;
|
||||
typedef CGAL::Polyhedron_3<K,
|
||||
CGAL::Skin_surface_polyhedral_items_3<Skin_surface_3> > Polyhedron;
|
||||
//typedef CGAL::Polyhedron_3<K> Polyhedron;
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
const char *filename;
|
||||
if (argc < 2) {
|
||||
filename = "data/caffeine.cin";
|
||||
} else {
|
||||
filename = argv[1];
|
||||
}
|
||||
|
||||
std::list<Weighted_point> l;
|
||||
FT shrinkfactor = 0.5;
|
||||
|
||||
Weighted_point wp;
|
||||
std::ifstream in(filename);
|
||||
while (in >> wp) l.push_back(wp);
|
||||
|
||||
Skin_surface_3 skin_surface(l.begin(), l.end(), shrinkfactor, false);
|
||||
|
||||
Polyhedron p;
|
||||
|
||||
std::cout << "Meshing ..." << std::endl;
|
||||
CGAL::mesh_skin_surface_3(skin_surface, p);
|
||||
|
||||
std::cout << "Subdividing ..." << std::endl;
|
||||
CGAL::subdivide_skin_surface_mesh_3(skin_surface, p, 1);
|
||||
|
||||
std::cout << "Is closed: " << (p.is_closed() ? "Yes" : "No") << std::endl;
|
||||
|
||||
std::ofstream out("mesh.off");
|
||||
write_polyhedron_with_normals(skin_surface, p, out);
|
||||
// out << p;
|
||||
|
||||
return 0;
|
||||
}
|
||||
Loading…
Reference in New Issue