To store and treat a figure (or shape) information. More...
Public Member Functions | |
Figure () | |
Default constructor. | |
Figure (const Figure &f) | |
Copy constructor. | |
virtual | ~Figure () |
Destructor. | |
void | setCode (int code) |
Choose a code for the domain defined by the figure. | |
virtual real_t | getSignedDistance (const Point< real_t > &p) const |
Return signed distance from a given point to current figure. More... | |
Figure & | operator= (const Figure &f) |
Operator =. | |
void | getSignedDistance (const Grid &g, Vect< real_t > &d) const |
Calculate signed distance to current figure with respect to grid points. More... | |
real_t | dLine (const Point< real_t > &p, const Point< real_t > &a, const Point< real_t > &b) const |
Compute signed distance from a line. More... | |
To store and treat a figure (or shape) information.
This class is essentially useful to construct data for mesh generators and for distance calculations.
real_t dLine | ( | const Point< real_t > & | p, |
const Point< real_t > & | a, | ||
const Point< real_t > & | b | ||
) | const |
Compute signed distance from a line.
[in] | p | Point for which distance is computed |
[in] | a | First vertex of line |
[in] | b | Second vertex of line |