[vtkusers] Raycast with points. how to?

rafael possani gentefinabr at hotmail.com
Sat Aug 18 23:25:16 EDT 2007


    hi folks, I have a doubt....    I have a ascii file with  xyz coordinates and I need to transforme this into a 3D image    Well, until now I readed these coordinates with vtkPoints after that a I readed a col with values into a vtkDoubleArray.    After, I created a vtkCellArray and put the points within this:    polys.InsertNextCell(points.GetNumberOfPoints());    for (int i=0; i <points.GetNumberOfPoints(); i++)      polys.InsertCellPoint(i);      In the end I created a vtkPolyData and inserted my points,   the cellarray( polys) and "scalars"(values):    vtkPolyData polyData = new vtkPolyData();    polyData.SetPoints(points);    polyData.SetVerts(polys);    polyData.GetPointData().SetScalars(scalars);    polyData.Update();    And of course, I made a mapper(polyDataMapper), a actor and everything more to see my points on the screen . Now I would like to make a raycast with them, what the best way? what class I should use? I tried "vtkFixedPointVolumeRayCastMapper" but in the examples I dont see anything with Polydata, I am a little confused now, someone can help me?  Thanks a lot, guys.  
_________________________________________________________________
Conheça o Windows Live Spaces, a rede de relacionamentos conectada ao Messenger!
http://spaces.live.com/signup.aspx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20070819/5298446d/attachment.htm>


More information about the vtkusers mailing list