[vtkusers] recommended cell locator for IntersectWithLine tests?
Dean Inglis
dean.inglis at camris.ca
Wed Dec 16 16:45:57 EST 2009
Hi all,
I am revisiting some old code I wrote to do stereology measurements
(mean intercept length). I am rotating a set of evenly spaced parallel
test lines (in the x-y plane) and during each rotation I need to find all
the intersection points
of the lines with a set of perpendicular planes defined by a vtkPolyData
( imagine the planes as being the walls of a maze ). I was using vtkOBBTree
with the following settings:
this->OBBTree->CacheCellBoundsOff();
this->OBBTree->AutomaticOff();
this->OBBTree->SetMaxLevel( 100 );
this->OBBTree->SetNumberOfCellsPerNode( 1 );
but there are some cases wherein not all the interesection points are found.
The number of "walls" in the "maze" are in the hundreds but less than a
thousand.
The walls do not necessarily form closed polygons. Can anyone recommend
a more robust locator and if so with some suggested settings?
thanks,
Dean
More information about the vtkusers
mailing list