[vtkusers] manual raycasting

Christos Panagiotou cpanagio at cs.ucl.ac.uk
Fri Aug 8 10:15:44 EDT 2003


guys

the last few days i am trying to implement a ray casting algorithm that 
will cast rays from the centroid of a volume
to select points in the surface (the volume has only surface - inside is 
empty) in regular angles

i have passed the info of the volume to a vtkOBBTree so i can use the 
intersectWithLine method

i define one vtkLine from the centroid to a vertical direction and then 
i rotate it to regular intervals

however the intersectWithLine method does not take as input a vtkLine 
but the start and end points of the line

so my question is:

when i rotate the vtkLine, is there any way to retrieve the start and 
end points of its new location so i can pass them
as parameters to the intersectwithline method?

if you have any other ideas of how this could be implemented i would 
appreciate if you could share them with me!

all the best
christos




More information about the vtkusers mailing list