#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 <ESBTL/CGAL/EPIC_kernel_with_atom.h>
#include <ESBTL/default.h>
typedef ESBTL::CGAL::EPIC_kernel_with_atom K;
typedef ESBTL::CGAL::Default_system System;
typedef Skin_surface_3::FT FT;
typedef Skin_surface_3::Bare_point Bare_point;
typedef Skin_surface_3::Weighted_point Weighted_point;
#include <list>
#include <fstream>
#include "skin_surface_writer.h"
#include "include/extract_balls_from_pdb.h"
int main(int argc, char *argv[])
{
const char *filename;
if (argc == 2) {
filename = argv[1];
} else {
filename = "data/4lfq.pdb";
}
std::list<Weighted_point> l;
double shrinkfactor = 0.5;
std::vector<System> systems;
extract_balls_from_pdb<K>(filename,systems,std::back_inserter(l));
std::cout << "Constructing skin surface..." <<std::endl;
Skin_surface_3 skin_surface(l.begin(), l.end(), shrinkfactor);
std::cout << "Meshing skin surface..." <<std::endl;
Polyhedron p;
std::ofstream out("mesh.off");
out << p;
return 0;
}
The Skin_surface_3 is the main class in this package.
Definition: Skin_surface_3.h:19
The class Skin_surface_traits_3 is designed as a default traits class for the class Skin_surface_3<Sk...
Definition: Skin_surface_traits_3.h:17
void mesh_skin_surface_3(const SkinSurface_3 &skin_surface, Polyhedron &p)
constructs a mesh of the skin_surface in p.