Abstract class for refinement scheme. More...
#include <algorithm>
#include "../../tessellation/tessellation.hpp"
#include "../two_dimensional/computational_cell_2d.hpp"
#include "../../misc/utils.hpp"
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... | |
Abstract class for refinement scheme.
Definition in file RefineStrategy.hpp.
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.
tess | The tessellation |
PointToRefine | The index of the refined cell |
edges | The edges of the refined cell |
R | The width of the refined cell |
normal | The normal to the split direction, this is one of the outputs |
Definition at line 113 of file RefineStrategy.cpp.