Skip to content

Commit 556978a

Browse files
committed
Choose the bounding box slightly bigger than the intersection box (issue #1)
1 parent 97051c1 commit 556978a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ VoronoiDiagram generateRandomDiagram(std::size_t nbPoints)
114114

115115
// Bound the diagram
116116
start = std::chrono::steady_clock::now();
117-
algorithm.bound(Box{0.0, 0.0, 1.0, 1.0});
117+
algorithm.bound(Box{-0.05, -0.05, 1.05, 1.05}); // Take the bounding box slightly bigger than the intersection box
118118
duration = std::chrono::steady_clock::now() - start;
119119
std::cout << "bounding: " << std::chrono::duration_cast<std::chrono::milliseconds>(duration).count() << "ms" << '\n';
120120
VoronoiDiagram diagram = algorithm.getDiagram();

0 commit comments

Comments
 (0)