[Insight-users] BoundingBox
Luis Ibanez
luis.ibanez at kitware.com
Sun Aug 20 18:16:32 EDT 2006
Hi Kajetan,
You may want to look at:
Insight/Testing/Code/Common
itkBoundingBoxTest.cxx
in particular to lines 176-192
The code will looks like:
typedef itk::BoundingBox<unsigned long, 3, double> BB;
const BB::PointsContainer * corners = my3DBox->GetCorners();
BB::PointsContainer::const_iterator it = corners->begin();
while(it != corners->end())
{
(*it) // here use the point...
++it;
}
Regards,
Luis
------------------------
Kajetan Berlinger wrote:
> Hi,
>
> sorry for this obviously very easy question, but somehow I have problems
> in creating an iterator for walking through a boundingbox.
> Could someone give me an example, please?
>
> Thanks! Appreciate it!
> kaj
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>
>
More information about the Insight-users
mailing list