<html>
<head>
<style>
P
{
margin:0px;
padding:0px
}
body
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body><div style="text-align: left;"> hi folks, I have a doubt....<br> I have a ascii file with xyz coordinates and I need to transforme this into a 3D image<br> Well, until now I readed these coordinates with vtkPoints after that a I readed a col with values into a vtkDoubleArray.<br> After, I created a vtkCellArray and put the points within this:<br><br> polys.InsertNextCell(points.GetNumberOfPoints());<br> for (int i=0; i <points.GetNumberOfPoints(); i++)<br> polys.InsertCellPoint(i);<br> <br> In the end I created a vtkPolyData and inserted my points, the cellarray( polys) and "scalars"(values):<br> vtkPolyData polyData = new vtkPolyData();<br> polyData.SetPoints(points);<br> polyData.SetVerts(polys);<br> polyData.GetPointData().SetScalars(scalars);<br> polyData.Update();<br><br> 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. <br> </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>