8#ifndef IMPALGEBRA_SPHERE_PATCH_3D_H
9#define IMPALGEBRA_SPHERE_PATCH_3D_H
14#include <cereal/access.hpp>
16IMPALGEBRA_BEGIN_NAMESPACE
19class IMPALGEBRAEXPORT SpherePatch3D :
public GeometricPrimitiveD<3> {
33 Plane3D get_plane()
const {
return crossing_plane_; }
37 crossing_plane_.show(out);
46 friend class cereal::access;
48 template<
class Archive>
void serialize(Archive &ar) {
49 ar(sph_, crossing_plane_);
55 , {
return get_bounding_box(g.get_sphere()); });
57IMPALGEBRA_END_NAMESPACE
Base class for geometric types.
#define IMP_NOT_IMPLEMENTED
Use this to mark that the method is not implemented yet.
Vector3D get_boundary_point() const
Get a point which is on the boundary of the patch.
bool get_contains(const Vector3D &p) const
Return true if the point is contained in the patch.
SpherePatch3D(const Sphere3D &sph, const Plane3D &crossing_plane)
Constructor.
#define IMP_AREA_GEOMETRY_METHODS(Name, name, area, bounding_box)
Implement the needed namespace methods for a geometry type.
SphereD< 3 > Sphere3D
Typedef for Python.
#define IMP_SHOWABLE_INLINE(Name, how_to_show)
Declare the methods needed by an object that can be printed.
#define IMP_UNUSED(variable)