1#ifndef included_AMP_DelaunayFaceList
2#define included_AMP_DelaunayFaceList
10#include "AMP/utils/DelaunayHelpers.h"
11#include "AMP/utils/extended_int.h"
28 using Point = std::array<int, NDIM>;
62 std::vector<size_t> &unused,
64 std::vector<uint32_t> &new_tri_id,
65 std::vector<Triangle> &new_tri,
66 std::vector<Triangle> &new_tri_nab,
67 std::vector<int> &neighbor,
68 std::vector<int> &face_id );
119 std::vector<face_data_struct>
data;
125 inline size_t get_face_index(
int face,
int tri ) {
return face + tri * ( NDIM + 1 ); }
static std::array< int64_t, NDIM > calc_surface_normal(const std::array< int, NDIM > x[])
void delete_faces(std::vector< int > &ids)
int get_N_face()
Function to get the number of faces on the convex hull.
bool outside_triangle(const Point *x, const Point &xi) const
std::array< int, NDIM+1 > Triangle
FaceList(const FaceList &)
size_t get_face_index(int face, int tri)
void add_node(const int node_id, std::vector< size_t > &unused, size_t &N_tri, std::vector< uint32_t > &new_tri_id, std::vector< Triangle > &new_tri, std::vector< Triangle > &new_tri_nab, std::vector< int > &neighbor, std::vector< int > &face_id)
Function to add a node to the convex hull.
FaceList & operator=(const FaceList &)
std::vector< face_data_struct > data
void update_face(const int N, const int old_tid[], const int old_fid[], const int new_tid[], const int new_fid[], const Triangle *tri)
Function to update faces on the convex hull.
FaceList(const int N, const Point *x, const int tri_id, const Triangle &tri)
Standard constructor.
A class used to store information for a point.