1#ifndef included_AMP_DelaunayTessellation
2#define included_AMP_DelaunayTessellation
10#include "AMP/utils/Array.h"
70template<
int NDIM,
class TYPE>
72 const std::array<TYPE, NDIM> &xi,
83template<
int NDIM,
class TYPE>
double calc_volume(int ndim, const double x[])
Function to calculate the volume of a simplex.
void compute_Barycentric(const int ndim, const double *x, const double *xi, double *L)
Subroutine to compute the Barycentric coordinates.
std::tuple< AMP::Array< int >, AMP::Array< int > > create_tessellation(const Array< TYPE > &x)
Function that creates the Delaunay Tessellation.
void get_circumsphere(const std::array< TYPE, NDIM > x0[], double &R, double *center)
Function to return the circumsphere containing a simplex.
bool collinear(const Array< TYPE > &x)
Check if.
int test_in_circumsphere(const std::array< TYPE, NDIM > x[], const std::array< TYPE, NDIM > &xi, double TOL_VOL)
Function to check if a point is inside the circumsphere of a simplex.