/** * \file SolventAccessibleSurface \brief * * Copyright 2007-2013 IMP Inventors. All rights reserved. * */ #include #include #include IMPSAXS_BEGIN_NAMESPACE IMP::Floats SolventAccessibleSurface::get_solvent_accessibility( const core::XYZRs& ps, float probe_radius, float density) { IMP::Floats res; algebra::Vector3Ds coordinates(ps.size()); IMP::Floats radii(ps.size()); for(unsigned int i=0; i Grid; IMP::algebra::BoundingBox3D bb(coordinates); Grid grid(2.0, bb); for(unsigned int i=0; i neighbours1, neighbours2; for (Grid::IndexIterator it= grid.indexes_begin(lb, ub); it != grid.indexes_end(lb, ub); ++it) { for(unsigned int vIndex=0; vIndex