const ParticlesTemp BondEndpointsRefiner::get_refined( Particle *p) const { IMP_INTERNAL_CHECK(get_can_refine(p), "Trying to refine the unrefinable"); Bond d(p); ParticlesTemp ps(2); ps[0] = d.get_bonded(0); ps[1] = d.get_bonded(1); return ps; }
const kernel::ParticlesTemp LeavesRefiner::get_refined(kernel::Particle *p) const { // force filling of the cache, yeah, its not good organization IMP_INTERNAL_CHECK(get_can_refine(p), "Trying to refine the unrefinable"); return core::get_leaves(Hierarchy(p, traits_)); }