31 #ifndef BasicIntersectionOfWalls_H
32 #define BasicIntersectionOfWalls_H
84 void read(std::istream& is)
override;
94 void write(std::ostream& os)
const override;
99 std::string
getName()
const override;
106 void getVTK(std::vector<Vec3D>& points, std::vector<std::vector<double>>& triangleStrips);
BasicIntersectionOfWalls()
Default constructor, the normal is infinitely long.
This is a class defining walls.
unsigned long getNumberOfObjects()
Returns the number of objects.
void oldRead(std::istream &is)
Reads BasicIntersectionOfWalls from an old-style restart file.
const std::complex< Mdouble > i
std::vector< BaseWall * > walls_
void write(std::ostream &os) const override
Writes the BasicIntersectionOfWalls to an output stream, usually a restart file.
BaseWall * getObject(unsigned i)
void read(std::istream &is) override
Reads BasicIntersectionOfWalls from a restart file.
void add(BaseWall &wall)
Defines a standard wall, given an outward normal vector s.t. normal*x=normal*point for all x of the w...
BasicIntersectionOfWalls * copy() const override
Wall copy method. It calls the copy constructor of this Wall, useful for polymorphism.
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...
~BasicIntersectionOfWalls() override
Default destructor.
void getVTK(std::vector< Vec3D > &points, std::vector< std::vector< double >> &triangleStrips)
std::string getName() const override
Returns the name of the object, in this case the string "BasicIntersectionOfWalls".