#include <threecircles.hxx>
Inheritance diagram for Multivac::CThreeCircles< T >:
Public Member Functions | |
CThreeCircles () throw () | |
Default constructor. | |
CThreeCircles (T CenterX1_, T CenterY1_, T Radius1_, T CenterX2_, T CenterY2_, T Radius2_, T CenterX3_, T CenterY3_, T Radius3_, bool reversed_=false) throw () | |
Main constructor. | |
~CThreeCircles () throw () | |
Destructor. | |
virtual void | SetDistances (CMesh< T > &Mesh, CLevelSet< T > &Phi) |
Updates the level set function Phi by setting distances to circles. | |
virtual T | GetDistance (T x, T y) |
Returns the distance from a given point to circles. | |
virtual void | GetProjectionOnMesh (T &x, T &y, CMesh< T > &Mesh) |
Returns the closest mesh-point of the projection of (x, y) on the curve. | |
virtual void | Save (string CurveFile) const |
Saves circles. | |
Protected Attributes | |
T | CenterX1 |
T | CenterY1 |
T | CenterX2 |
T | CenterY2 |
T | CenterX3 |
T | CenterY3 |
T | Radius1 |
T | Radius2 |
T | Radius3 |
|
Main constructor. Defines circles properties.
|
|
Returns the distance from a given point to circles.
Implements Multivac::CInitialCurve< T >. |
|
Returns the closest mesh-point of the projection of (x, y) on the curve. Let A = (x, y). Let B be the projection of A on the curve. Let C be the closest point to B that is on the mesh (included its vertices). On exit, C is returned through x and y: C = (x, y).
Implements Multivac::CInitialCurve< T >. |
|
Saves circles.
Implements Multivac::CInitialCurve< T >. |
|
Updates the level set function Phi by setting distances to circles.
Implements Multivac::CInitialCurve< T >. |