Skip to content

Performance of intersection of sphere with cuboid #5276

Answered by sloriot
krober10nd asked this question in Q&A
Discussion options

You must be logged in to vote

if you have many spheres vs only 2 cubes, I would simply add a filter test using bboxes of the cubes + the sphere before doing the test.
Something like CGAL::do_overlap(sphere.bbox(), cube1.bbox()) (storing the bboxes into local object to avoid rebuiding them again and again of course).

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@krober10nd
Comment options

@sloriot
Comment options

@krober10nd
Comment options

Answer selected by krober10nd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants
Converted from issue

This discussion was converted from issue #5276 on December 14, 2020 10:25.