-
-
Save pgbarletta/abcf1f51187fb66fbf1bf92494de7a13 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/////////////////////////////////// | |
// 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