39#ifndef octreelocalizertutil_h
40#define octreelocalizertutil_h
89 for (
int i = 1; i <= 3; i++ ) {
138 centerCoords.
at(3) = 0.0;
285 centerCoords.
at(3) = 0.0;
308 void giveResult(std :: list< DelaunayTriangle * > &answer)
override
void setOrigin(FloatArray &coords)
Sets the origin of the bounding box.
void setSize(double s)
Sets the size of the bounding box (all sides are equal).
void giveResult(std ::list< int > &answer) override
ClosestNode(const FloatArray &pos, Domain *d)
void giveStartingPosition(FloatArray &position) override
~ClosestNode()
Destructor.
bool evaluate(int &nodeNr) override
double distanceToClosestNode
std ::list< int > closestNodeIndices
bool isBBXStage2Defined(BoundingBox &BBXStage2) override
bool isBBXStage1Defined(BoundingBox &BBXStage1) override
FloatArray startingPosition
double giveYCenterCoordinate() const
Gives the y coordinate of the center of the circumscribed circle.
double giveCircumRadius() const
Gives the radius of the circumscribed circle.
std ::list< LocalInsertionData< DelaunayTriangle * > > * giveListOfCellsAndPosition()
Returns a list of octree cells and with iterator position in their member lists.
double giveXCenterCoordinate() const
Gives the x coordinate of the center of the circumscribed circle.
double giveCoordinate(int i) const
const FloatArray & giveCoordinates() const
std ::list< DelaunayTriangle * > result
bool evaluate(DelaunayTriangle *&DTptr) override
ElementCircumCirclesContainingNode(FloatArray pos, Domain *d)
void giveResult(std ::list< DelaunayTriangle * > &answer) override
bool isBBXStage1Defined(BoundingBox &BBXStage1) override
void giveStartingPosition(FloatArray &answer) override
~ElementCircumCirclesContainingNode()
bool isBBXStage2Defined(BoundingBox &BBXStage2) override
FloatArray startingPosition
bool evaluate(int &nodeNr, OctantRecT< int > *cell) override
void registerInsertion(int &nodeNr, LocalInsertionData< int >LIdata) override
Stores LocalInsertionData on the member.
InsertNode(Domain *d)
Constuctor.
std ::list< LocalInsertionData< int > > * giveInsertionList(int &nodeNr) override
Returns list of LocalInsertionData stored on the member.
InsertTriangleBasedOnCircumcircle(Domain *d)
Constructor.
bool evaluate(DelaunayTriangle *&DTptr, OctantRecT< DelaunayTriangle * > *cell) override
~InsertTriangleBasedOnCircumcircle()
Destructor.
std ::list< LocalInsertionData< DelaunayTriangle * > > * giveInsertionList(DelaunayTriangle *&DTptr) override
Returns list of LocalInsertionData stored on the member.
void registerInsertion(DelaunayTriangle *&TEptr, LocalInsertionData< DelaunayTriangle * >LIdata) override
Stores LocalInsertionData on the member.
int containsPoint(const FloatArray &coords)
boundingSphereStatus testBoundingSphere(const FloatArray &coords, double radius)
double distance(const FloatArray &x, const FloatArray &y)