Skip to content

Instantly share code, notes, and snippets.

@pgbarletta
Created April 7, 2017 14:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pgbarletta/abcf1f51187fb66fbf1bf92494de7a13 to your computer and use it in GitHub Desktop.
Save pgbarletta/abcf1f51187fb66fbf1bf92494de7a13 to your computer and use it in GitHub Desktop.
///////////////////////////////////
// Get cells bounding boxes.
for (const auto &cell_ite : input_cells) {
const Tetrahedron tetra(
cell_ite->vertex(0)->point(), cell_ite->vertex(1)->point(),
cell_ite->vertex(2)->point(), cell_ite->vertex(3)->point());
boxes.push_back(Box(std::move(tetra.bbox()), cell_ite));
}
// Get the intersections
CGAL::box_self_intersection_d(boxes.begin(), boxes.end(), called);
///////////////////////////////////
///////////////////////////////////
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment