From 8446d9f566f4c06047f67f672087ce0c38df26b7 Mon Sep 17 00:00:00 2001 From: cignoni Date: Tue, 9 Nov 2010 08:15:14 +0000 Subject: [PATCH] added method to know if a spatial indexing structure is empty or not --- vcg/space/index/base.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/vcg/space/index/base.h b/vcg/space/index/base.h index 518da306..a453ad4e 100644 --- a/vcg/space/index/base.h +++ b/vcg/space/index/base.h @@ -95,6 +95,20 @@ public: (void)_oEnd; } + /************************************************************************** + Method Empty. + Description: + check if the spatial structure is empty. + + Return Value: + true if it is empty. + **************************************************************************/ + + bool Empty() { + assert(0); // this is a base interface. + return true; + } + /************************************************************************** Method GetClosest.