9#ifndef IMPALGEBRA_CONNOLLY_SURFACE_H
10#define IMPALGEBRA_CONNOLLY_SURFACE_H
12#include <IMP/algebra/algebra_config.h>
17#include <cereal/access.hpp>
19IMPALGEBRA_BEGIN_NAMESPACE
23class ConnollySurfacePoint {
29 friend class cereal::access;
31 template<
class Archive>
void serialize(Archive &ar) {
32 ar(atom[0], atom[1], atom[2], surface_point, area, normal);
36 ConnollySurfacePoint() {}
40 : surface_point(sp), area(a), normal(n) {
45 int get_atom(
unsigned int i) {
50 double get_area()
const {
return area; }
73IMPALGEBRA_END_NAMESPACE
A class for storing lists of IMP items.
#define IMP_USAGE_CHECK(expr, message)
A runtime test for incorrect usage of a class or method.
Represent a point on the Connolly surface.
ConnollySurfacePoints get_connolly_surface(const algebra::Sphere3Ds &spheres, double density, double probe_radius)
IMP::Vector< Sphere3D > Sphere3Ds
IMP::Vector< ConnollySurfacePoint > ConnollySurfacePoints
Macros to help with objects that can be printed to a stream.
#define IMP_SHOWABLE_INLINE(Name, how_to_show)
Declare the methods needed by an object that can be printed.
Macros to help in implementing Value objects.
#define IMP_VALUES(Name, PluralName)
Define the type for storing sets of values.