Brick Class Reference
To store and treat a brick (parallelepiped) figure. More...
Inheritance diagram for Brick:
Public Member Functions | |
| Brick () | |
| Default constructor. | |
| Brick (const Point< double > &bbm, const Point< double > &bbM, int code=1) | |
| Constructor. | |
| void | setBoundingBox (const Point< double > &bbm, const Point< double > &bbM) |
| Assign bounding box of the brick. | |
| Point< double > | getBoundingBox1 () const |
| Return first point of bounding box (xmin,ymin,zmin) | |
| Point< double > | getBoundingBox2 () const |
| Return second point of bounding box (xmax,ymax,zmax) | |
| double | getSignedDistance (const Point< double > &p) const |
| Return signed distance of a given point from the current brick. | |
| Brick & | operator+= (Point< double > a) |
| Operator +=. | |
| Brick & | operator+= (double a) |
| Operator *=. | |
| void | setCode (int code) |
| Choose a code for the domain defined by the figure. | |
| void | getSignedDistance (const Grid &g, Vect< double > &d) const |
| Calculate signed distance to current figure with respect to grid points. | |
| double | dLine (const Point< double > &p, const Point< double > &a, const Point< double > &b) const |
Detailed Description
To store and treat a brick (parallelepiped) figure.
Constructor & Destructor Documentation
Constructor.
- Parameters:
-
[in] bbm first point (xmin,ymin,zmin) [in] bbM second point (xmax,ymax,zmax) [in] code Code to assign to rectangle
Member Function Documentation
| void setBoundingBox | ( | const Point< double > & | bbm, |
| const Point< double > & | bbM | ||
| ) |
Assign bounding box of the brick.
- Parameters:
-
[in] bbm first point (xmin,ymin,zmin) [in] bbM second point (xmax,ymax,zmax)
| double getSignedDistance | ( | const Point< double > & | p | ) | const [virtual] |
Return signed distance of a given point from the current brick.
The computed distance is negative if p lies in the brick, negative if it is outside, and 0 on its boundary
- Parameters:
-
[in] p Point<double> instance
Reimplemented from Figure.
| Brick& operator+= | ( | double | a | ) |
Operator *=.
Scale brick by a factor a
| void getSignedDistance | ( | const Grid & | g, |
| Vect< double > & | d | ||
| ) | const [inherited] |
- OFELI
- Brick
Copyright © 1998-2012 Rachid Touzani