Classes | Functions
RefineStrategy.hpp File Reference

Abstract class for refinement scheme. More...

#include <algorithm>
#include "../../tessellation/tessellation.hpp"
#include "../two_dimensional/computational_cell_2d.hpp"
#include "../../misc/utils.hpp"
Include dependency graph for RefineStrategy.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  RefineStrategy
 Abstract class for refinment strategies. More...
 

Functions

Vector2D FindBestSplit (Tessellation const *tess, int PointToRefine, vector< Edge > const &edges, double R, Vector2D &normal)
 Finds the best way to spit the cell by finding the line connecting the mesh point and the cell's CM. More...
 

Detailed Description

Abstract class for refinement scheme.

Author
Elad Steinberg

Definition in file RefineStrategy.hpp.

Function Documentation

◆ FindBestSplit()

Vector2D FindBestSplit ( Tessellation const *  tess,
int  PointToRefine,
vector< Edge > const &  edges,
double  R,
Vector2D normal 
)

Finds the best way to spit the cell by finding the line connecting the mesh point and the cell's CM.

Parameters
tessThe tessellation
PointToRefineThe index of the refined cell
edgesThe edges of the refined cell
RThe width of the refined cell
normalThe normal to the split direction, this is one of the outputs
Returns
slope The direction where the new point should be at

Definition at line 113 of file RefineStrategy.cpp.

Here is the call graph for this function: