Skip to content

Commit

Permalink
Add assert to look for bounding boxes that don't overlap the overall …
Browse files Browse the repository at this point in the history
…octree bounds.

Ke Xu.
  • Loading branch information
mmp committed May 28, 2015
1 parent 73cc10a commit a7a3e71
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/octree.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ template <typename NodeData> class Octree {
Octree(const BBox &b, int md = 16)
: maxDepth(md), bound(b) { }
void Add(const NodeData &dataItem, const BBox &dataBound) {
Assert(dataBound.Overlaps(bound));
addPrivate(&root, bound, dataItem, dataBound,
DistanceSquared(dataBound.pMin, dataBound.pMax));
}
Expand Down

0 comments on commit a7a3e71

Please sign in to comment.