#include <island0.hxx>
Inheritance diagram for Multivac::CIsland0< T >:
Public Member Functions | |
CIsland0 () throw () | |
Default constructor. | |
CIsland0 (T CenterX1_, T CenterY1_, T Radius1_, T CenterX2_, T CenterY2_, T Radius2_, T CenterX3_, T CenterY3_, T Radius3_, bool reversed_=false) throw () | |
Main constructor. | |
~CIsland0 () throw () | |
Destructor. | |
virtual void | SetDistances (CMesh< T > &Mesh, CLevelSet< T > &Phi) |
Updates the level set function Phi by setting distances to the front. | |
virtual T | GetDistance (T x, T y) |
Returns the distance from a given point to the front. | |
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 front. | |
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 the front.
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 front.
Implements Multivac::CInitialCurve< T >. |
|
Updates the level set function Phi by setting distances to the front. The distance outside the first (biggest) circle is positive, the distance inside the island is positive and the distance in between the two circles is negative.
Implements Multivac::CInitialCurve< T >. |