mirror of https://github.com/CGAL/cgal
make work with new pdb reader
This commit is contained in:
parent
f5d2df8590
commit
d00d79d527
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue