I have a set of points. I want to calculate the Delaunay Triangulation of them using CGAL and then get the neighbors back.
Input:
p1, p2, p3, p4, ...
Output:
p1-p2, p1-p4, ....
I found answers to this problem for 2 or 3 dimensions. However I need have at least 6-8 dimensions. I can't figure it out. The proposed answers for lower dimensions use edges_iterator. This isn't implemented for d-dimensions. The documentation isn't helping me either...
update: What I have so far is this, sadly it results in a segfault after some iterations
T t(D);
t.insert(points.begin(), points.end());
for(t_iterator ei = t.finite_full_cells_begin(); ei != t.finite_full_cells_end(); ++ei) {
for (v_iterator vi = *ei->vertices_begin(); vi != *ei->vertices_end(); ++vi) {
std::cout << *vi << std::endl;
}
}
update2: I ended up using scipy's triangulation instead. Much easier to use and better documented in my opinion