42 #ifndef delaunaytriangle_h 43 #define delaunaytriangle_h 110 #endif // delaunaytriangle_h
double & at(int i)
Coefficient access function.
double giveShortestEdgeLength()
Gives the length of the shortest triangle edge.
void setCircumCircle(double x, double y, double r)
Sets up the parameters of the calculated circumscribed circle.
double giveCircumRadius() const
Gives the radius of the circumscribed circle.
double giveDistanceToCenter(const FloatArray &coords)
Calculates the distance of a passed point to the center of the circumscribed circle.
Class implementing an array of integers.
int & at(int i)
Coefficient access function.
Delaunay triangle for the triangulation of a set of nodes.
std::list< LocalInsertionData< DelaunayTriangle * > > * giveListOfCellsAndPosition()
Returns a list of octree cells and with iterator position in their member lists.
FloatArray circumCircle
Parameters of the circumscribed circle: coordinates of center (x,y) and its radius.
IntArray nodes
Nodes defining the triangle.
void setValidFlag(bool newFlag)
Sets the flag whether Delaunay condition is fulfilled.
double giveEdgeLength(int nodeA, int nodeB)
Gives the length of the edge between two nodes.
bool giveValidFlag()
Gives true if the delaunay triangle is valid.
double giveYCenterCoordinate() const
Gives the y coordinate of the center of the circumscribed circle.
Help class for storing pointer to octant cell and position of the member in the data list...
void computeCircumcircle()
Calculates the parameters of the circumscribed circle.
double giveXCenterCoordinate() const
Gives the x coordinate of the center of the circumscribed circle.
Class representing vector of real numbers.
int giveNode(int i)
Gives the i-node of the triangle.
Domain * domain
Domain where the nodes are defined.
~DelaunayTriangle()
Destructor.
the oofem namespace is to define a context or scope in which all oofem names are defined.
bool validFlag
Flag for Delaunay property.
std::list< LocalInsertionData< DelaunayTriangle * > > listOfCellsContainedInAndPosition
In order to allow fast search in octree, every triangle stores list of octree cells where its circums...
DelaunayTriangle(Domain *d, int node1, int node2, int node3)
Constructor.