42#ifndef delaunaytriangle_h
43#define delaunaytriangle_h
IntArray nodes
Nodes defining the triangle.
FloatArray circumCircle
Parameters of the circumscribed circle: coordinates of center (x,y) and its radius.
double giveYCenterCoordinate() const
Gives the y coordinate of the center of the circumscribed circle.
Domain * domain
Domain where the nodes are defined.
void setCircumCircle(double x, double y, double r)
Sets up the parameters of the calculated circumscribed circle.
double giveEdgeLength(int nodeA, int nodeB)
Gives the length of the edge between two nodes.
double giveCircumRadius() const
Gives the radius of the circumscribed circle.
void setValidFlag(bool newFlag)
Sets the flag whether Delaunay condition is fulfilled.
std ::list< LocalInsertionData< DelaunayTriangle * > > * giveListOfCellsAndPosition()
Returns a list of octree cells and with iterator position in their member lists.
bool giveValidFlag()
Gives true if the delaunay triangle is valid.
std ::list< LocalInsertionData< DelaunayTriangle * > > listOfCellsContainedInAndPosition
In order to allow fast search in octree, every triangle stores list of octree cells where its circums...
double giveDistanceToCenter(const FloatArray &coords)
Calculates the distance of a passed point to the center of the circumscribed circle.
~DelaunayTriangle()
Destructor.
double giveXCenterCoordinate() const
Gives the x coordinate of the center of the circumscribed circle.
bool validFlag
Flag for Delaunay property.
int giveNode(int i)
Gives the i-node of the triangle.
void computeCircumcircle()
Calculates the parameters of the circumscribed circle.
DelaunayTriangle(Domain *d, int node1, int node2, int node3)
Constructor.
double giveShortestEdgeLength()
Gives the length of the shortest triangle edge.