Skip to content

Commit

Permalink
Change barycentric point constructor syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonCampolattaro committed Jun 16, 2020
1 parent 71dcaa0 commit 0d1d4f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Octree/include/CGAL/Octree.h
Expand Up @@ -177,12 +177,13 @@ namespace CGAL {

// Determine the location this node should be split
// TODO: I think Point_3 has a [] operator, so using an array here might not be necessary!

FT bary[3];
for (int i = 0; i < 3; i++)
bary[i] = node->location()[i] * size + (size / 2.0) + m_bbox_min[i];

// Convert that location into a point
return Point(bary[0], bary[1], bary[2]);
return {bary[0], bary[1], bary[2]};
}

void refine_recurse(Node *node, size_t dist_to_max_depth, size_t max_pts_num) {
Expand Down

0 comments on commit 0d1d4f5

Please sign in to comment.