31 #ifndef BasicUnionOfWalls_H
32 #define BasicUnionOfWalls_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: BasicUnionOfWalls.h:43
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: BasicUnionOfWalls.cc:90
~BasicUnionOfWalls() override
Default destructor.
Definition: BasicUnionOfWalls.cc:55
void write(std::ostream &os) const override
Writes the BasicUnionOfWalls to an output stream, usually a restart file.
Definition: BasicUnionOfWalls.cc:149
void oldRead(std::istream &is)
Reads BasicUnionOfWalls from an old-style restart file.
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: BasicUnionOfWalls.cc:103
unsigned long getNumberOfObjects()
Returns the number of objects.
Definition: BasicUnionOfWalls.cc:77
BasicUnionOfWalls()
Default constructor, the normal is infinitely long.
Definition: BasicUnionOfWalls.cc:35
void read(std::istream &is) override
Reads BasicUnionOfWalls from a restart file.
Definition: BasicUnionOfWalls.cc:128
std::vector< BaseWall * > walls_
Definition: BasicUnionOfWalls.h:117
void writeVTK(VTKContainer &vtk) const override
Definition: BasicUnionOfWalls.cc:228
void getVTK(std::vector< Vec3D > &points, std::vector< std::vector< double >> &triangleStrips)
Definition: BasicUnionOfWalls.cc:168
std::string getName() const override
Returns the name of the object, in this case the string "BasicUnionOfWalls".
Definition: BasicUnionOfWalls.cc:163
BasicUnionOfWalls * copy() const override
Wall copy method. It calls the copy constructor of this Wall, useful for polymorphism.
Definition: BasicUnionOfWalls.cc:67
BaseWall * getObject(unsigned i)
Definition: BasicUnionOfWalls.cc:222
const std::complex< Mdouble > i
Definition: ExtendedMath.h:51
Definition: BaseWall.h:38