------------------------------------------------------------------------------ Given a bucket, return the ids in the bucket.
| 1994 | //------------------------------------------------------------------------------ |
| 1995 | // Given a bucket, return the ids in the bucket. |
| 1996 | void vtkStaticPointLocator::GetBucketIds(vtkIdType bNum, vtkIdList* bList) |
| 1997 | { |
| 1998 | this->BuildLocator(); // will subdivide if modified; otherwise returns |
| 1999 | if (!this->Buckets) |
| 2000 | { |
| 2001 | bList->Reset(); |
| 2002 | return; |
| 2003 | } |
| 2004 | |
| 2005 | if (this->LargeIds) |
| 2006 | { |
| 2007 | static_cast<BucketList<vtkIdType>*>(this->Buckets)->GetIds(bNum, bList); |
| 2008 | } |
| 2009 | else |
| 2010 | { |
| 2011 | static_cast<BucketList<int>*>(this->Buckets)->GetIds(bNum, bList); |
| 2012 | } |
| 2013 | } |
| 2014 | |
| 2015 | //------------------------------------------------------------------------------ |
| 2016 | // Return the center a specified bucket/bin. |
no test coverage detected