From aee1bedb59ca380a593053c14028663482d36b1b Mon Sep 17 00:00:00 2001 From: nicopietroni Date: Mon, 25 Jun 2012 16:14:57 +0000 Subject: [PATCH] resolved 1 bug in getBBox function --- apps/sample/hashing_2D/test_hash2D.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/sample/hashing_2D/test_hash2D.cpp b/apps/sample/hashing_2D/test_hash2D.cpp index ec575aac..7f89441b 100644 --- a/apps/sample/hashing_2D/test_hash2D.cpp +++ b/apps/sample/hashing_2D/test_hash2D.cpp @@ -46,8 +46,8 @@ public: void GetBBox(vcg::Box2 &BB2) { - BB2.SetNull(); - BB2.Add(P0()); + //BB2.SetNull(); + BB2.Set(P0()); BB2.Add(P1()); } @@ -187,7 +187,7 @@ void GetCloseSegments(MySegmentType *S, result.clear(); vcg::Box2 bbox; S->GetBBox(bbox); - bbox.Offset(radius*1.02); + bbox.Offset(radius);//*1.02); ///then get into the grid std::vector inbox;