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);
Definition: BaseParticle.h:54
Basic class for walls.
Definition: BaseWall.h:49
Restriction of a wall to the intersection with another wall.
Definition: BasicIntersectionOfWalls.h:43
void getVTK(std::vector< Vec3D > &points, std::vector< std::vector< double >> &triangleStrips)
Definition: BasicIntersectionOfWalls.cc:290
BaseWall * getObject(unsigned i)
Definition: BasicIntersectionOfWalls.cc:344
unsigned long getNumberOfObjects()
Returns the number of objects.
Definition: BasicIntersectionOfWalls.cc:77
~BasicIntersectionOfWalls() override
Default destructor.
Definition: BasicIntersectionOfWalls.cc:55
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...
Definition: BasicIntersectionOfWalls.cc:90
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....
Definition: BasicIntersectionOfWalls.cc:103
BasicIntersectionOfWalls()
Default constructor, the normal is infinitely long.
Definition: BasicIntersectionOfWalls.cc:35
void write(std::ostream &os) const override
Writes the BasicIntersectionOfWalls to an output stream, usually a restart file.
Definition: BasicIntersectionOfWalls.cc:271
std::string getName() const override
Returns the name of the object, in this case the string "BasicIntersectionOfWalls".
Definition: BasicIntersectionOfWalls.cc:285
BasicIntersectionOfWalls * copy() const override
Wall copy method. It calls the copy constructor of this Wall, useful for polymorphism.
Definition: BasicIntersectionOfWalls.cc:67
void read(std::istream &is) override
Reads BasicIntersectionOfWalls from a restart file.
Definition: BasicIntersectionOfWalls.cc:248
std::vector< BaseWall * > walls_
Definition: BasicIntersectionOfWalls.h:114
void oldRead(std::istream &is)
Reads BasicIntersectionOfWalls from an old-style restart file.
const std::complex< Mdouble > i
Definition: ExtendedMath.h:51