make work with new pdb reader

This commit is contained in:
Daniel Russel 2009-06-10 21:35:28 +00:00
parent f5d2df8590
commit d00d79d527
1 changed files with 9 additions and 7 deletions

View File

@ -9,7 +9,7 @@
#define EXTRACT_BALLS_FROM_PDB_H
#include <CGAL/PDB/PDB.h>
#include <CGAL/PDB/iterator.h>
#include <CGAL/PDB/range.h>
#include <fstream>
template <class Range, class OIt>
@ -28,14 +28,16 @@ void extract_balls_from_pdb(const char *filename,
std::cerr << "Error opening input file " << filename << std::endl;
}
CGAL::PDB::PDB pdb(in);
CGAL::PDB::Model m=pdb.models().begin()->model();
CGAL::PDB::Chain c=m.chains().begin()->chain();
using namespace CGAL::PDB;
PDB pdb(in);
Model m=pdb.models().begin()->model();
Chain c=m.chains().begin()->chain();
// get all weighted_points
copy
(CGAL::PDB::make_weighted_point_range(CGAL::PDB::make_atom_range
(m.atoms()), t),
::copy
(make_weighted_point_range(make_atom_range(m.atoms()), t),
weighted_points);
}