31 #ifndef INFINITEWALL_H
32 #define INFINITEWALL_H
120 Mdouble& overlap)
const override;
125 void read(std::istream& is)
override;
130 void oldRead(std::istream& is);
140 std::string
getName()
const override;
150 void createVTK(std::vector<Vec3D>& myPoints)
const;
bool getDistanceAndNormal(const BaseParticle &p, Mdouble &distance, Vec3D &normal_return) const override
Compute the distance from the wall for a given BaseParticle and return if there is a collision...
std::string getName() const override
Writes the InfiniteWall to an output stream, usually a restart file.
void createVTK(std::vector< Vec3D > &myPoints) const
Vec3D getNormal() const
Access function for normal.
bool getDistanceNormalOverlapSuperquadric(const SuperQuadricParticle &p, Mdouble &distance, Vec3D &normal_return, Mdouble &overlap) const override
Compute the distance from the wall for a given BaseParticle and return if there is a collision...
void oldRead(std::istream &is)
Reads InfiniteWall from an old-style restart file.
void writeVTK(VTKContainer &vtk) const override
#define MERCURY_DEPRECATED
InfiniteWall()
Default constructor, the normal is infinitely long.
~InfiniteWall() override
Default destructor.
InfiniteWall * copy() const override
Wall copy method. It calls the copy constructor of this Wall, useful for polymorphism.
Vec3D getFurthestPointSuperQuadric(const Vec3D &normalBodyFixed, const Vec3D &axes, Mdouble eps1, Mdouble eps2) const override
Largely untested, use at your own risk for anything other than ellipsoids.
void read(std::istream &is) override
Reads InfiniteWall from a restart file.
void set(Vec3D normal, Vec3D point)
Defines a standard wall, given an outward normal vector s.t. normal*x=normal*point for all x of the w...
This is a class defining walls.
Mdouble getDistance(Vec3D position) const
Returns the distance of the wall to the particle.
virtual void move(const Vec3D &move)
Moves this BaseInteractable by adding an amount to the position.
void setNormal(Vec3D normal)
Changes the normal of the InfiniteWall.