AABB tree: document size, bbox and empty of the tree

note: we could rename root_bbox as simply bbox
This commit is contained in:
Pierre Alliez 2009-05-01 06:41:10 +00:00
parent 23f94c802b
commit b23fd11c04
2 changed files with 9 additions and 2 deletions

View File

@ -61,6 +61,15 @@ The class \ccRefName\ is a static data structure for efficient intersection and
\ccMethod{void clear(void);}
{Clears the AABB tree. }
\ccMethod{Bounding_box root_bbox();}
{Returns the root axis-aligned bounding box of the whole tree. }
\ccMethod{size_t size();}
{Returns the number of primitives in the tree. }
\ccMethod{bool empty();}
{Returns \ccc{true} iff tree contains no primitive. }
% INTERSECTION TESTS
\ccHeading{Intersection Tests}

View File

@ -120,8 +120,6 @@ namespace CGAL {
Point_and_primitive closest_point_and_primitive(const Point& q, const Point& hint) const;
Point_and_primitive closest_point_and_primitive(const Point& q) const;
//////////////////////////////////////////////
//TODO: document this
Bounding_box root_bbox() const { return m_p_root->bounding_box(); }
bool is_empty() const { return m_data.empty(); }
size_t size() const { return m_data.size(); }