<html>
<head>
<style>
P
{
margin:0px;
padding:0px
}
body
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body><div style="text-align: left;">&nbsp;&nbsp;&nbsp; hi folks, I have a doubt....<br>&nbsp;&nbsp;&nbsp; I have a ascii file with&nbsp; xyz coordinates and I need to transforme this into a 3D image<br>&nbsp;&nbsp;&nbsp; Well, until now I readed these coordinates with vtkPoints after that a I readed a col with values into a vtkDoubleArray.<br>&nbsp;&nbsp;&nbsp; After, I created a vtkCellArray and put the points within this:<br><br>&nbsp;&nbsp;&nbsp; polys.InsertNextCell(points.GetNumberOfPoints());<br>&nbsp; &nbsp; for (int i=0; i &lt;points.GetNumberOfPoints(); i++)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; polys.InsertCellPoint(i);<br>&nbsp;&nbsp; <br>&nbsp;&nbsp; In the end I created a vtkPolyData and inserted my points,&nbsp;  the cellarray( polys) and "scalars"(values):<br>&nbsp;&nbsp;&nbsp; vtkPolyData polyData = new vtkPolyData();<br>&nbsp;&nbsp;&nbsp; polyData.SetPoints(points);<br>&nbsp;&nbsp;&nbsp; polyData.SetVerts(polys);<br>&nbsp;&nbsp;&nbsp; polyData.GetPointData().SetScalars(scalars);<br>&nbsp;&nbsp;&nbsp; polyData.Update();<br><br>&nbsp;&nbsp;&nbsp; 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?&nbsp; Thanks a lot, guys. <br>&nbsp;</div><br /><hr />Conheça o Windows Live Spaces, a rede de relacionamentos conectada ao Messenger! <a href='http://spaces.live.com/signup.aspx' target='_new'>Crie já o seu!</a></body>
</html>