intersections line- unstructured grid
John Biddiscombe
j.biddiscombe at rl.ac.uk
Fri Oct 1 09:50:24 EDT 1999
>>>>
How is it possible to get the number of intersections between a
UnstructuredGrid and a line ?
Thanks in advance
Edi.
<<<<
One way would be...
Create a cell locator->SetInput(your unbstructured grid);
Fire ray at grid using CellLocator
IntersectLine(.......)
This will return intersection t-point.
Now do this....
line from Point A -> Point B
intersection=true;
While (intersection==true) {
Celllocator->IntersectWithLine( from A......to B)
if (intersection found and t>0 && t<1) {
A = (B-A)*t (i.e. t distance (+epsilon or tolerance) along A->B)
intersections++
} else intersection=false;
}
It ought to work as long as you do it right!
John B
-----------------------------------------------------------------------------
This is the private VTK discussion list. Please keep messages on-topic.
Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at gsao.med.ge.com>. For help, send message body containing
"info vtkusers" to the same address. Live long and prosper.
-----------------------------------------------------------------------------
More information about the vtkusers
mailing list