#include <CGAL/Simple_cartesian.h>
#include <CGAL/Barycentric_coordinates_3/tetrahedron_coordinates.h>
int main(){
const Point_3 p0(0.0, 0.0, 0.0);
const Point_3 p1(1.0, 0.0, 0.0);
const Point_3 p2(0.0, 1.0, 0.0);
const Point_3 p3(0.0, 0.0, 1.0);
const std::vector<Point_3> queries = {
Point_3(0.25f , 0.25f, 0.25f), Point_3(0.3f, 0.2f, 0.3f),
Point_3(0.1f, 0.1f, 0.1f), Point_3(0.2f, 0.5f, 0.3f),
Point_3(0.0f , 0.0f, 0.5f), Point_3(0.4f, 0.4f, 0.0f),
Point_3(0.0f, 0.4f, 0.4f), Point_3(0.4f, 0.0f, 0.4f),
Point_3(0.5f, 0.5f, 0.5f), Point_3(2.0f, 0.0f, 0.0f),
Point_3(-1.0f, -1.0f, 1.0f), Point_3(0.5f, 0.5f, -2.0f)};
std::cout << std::endl << "tetrahedra coordinates (all queries): " << std::endl
<< std::endl;
for(std::size_t i = 0; i < queries.size(); i++){
const auto coords_array =
std::cout << "tetrahedra coordinates (query " << i << "): " <<
coords_array[0] << " " << coords_array[1] << " " <<
coords_array[2] << " " << coords_array[3] << std::endl;
}
return EXIT_SUCCESS;
}