Well, <br><br>The data file is a file containing x, y and z data in UTM coordinates. here is the code to read the file.<br><br>std::string dataline;<br>std::fstream fs;<br>std::istringstream instream;<br><br>fs.open(fname, std::ios::in);<br><br>vtkDoubleArray *scatter_data = vtkDoubleArray::New();<br>scatter_data->SetNumberOfComponents(3);<br><br>for( long int i = 0; !fs.eof(); i++)<br>{<br> double x, y, z;<br> getline(fs, dataline);<br> instream.clear();<br> instream.str(dataline);<br> if( !dataline.empty())<br> {<br> instream >> x >> y >> z;<br> scatter_data->InsertNextTuple3(x, y, z);<br> }<br>}<br><br>fs.close();<br><br><br>the following include files are being used:<br><br>#include <vtkCamera.h><br>#include <vtkRenderer.h><br>#include <vtkPoints.h><br>
#include <vtkPolyVertex.h><br>#include <vtkUnstructuredGrid.h><br>
#include <vtkActor.h><br>#include <vtkDoubleArray.h><br>
#include <vtkProperty.h><br>
#include <vtkRenderWindow.h><br>
#include <vtkDelaunay.h><br>
#include <vtkPolyDataMapper.h><br>
#include <wxVTKRenderWindowInteractor.h><br><br>Even after including update(), it didnt show any result.. what may be the problem..??<br><br>Thanks<br><font color="#000000"><br></font><br><br><div style="border-top:1px dashed #ccc; border-bottom:1px dashed #ccc; padding:5px;"><a href="http://mail.in.com/mails/new_reg.php?utm_source=invite&utm_medium=outgoing" style="font:13px arial; color:#1E56A1; text-decoration:none;">Dear <b>vtkusers !</b> Get Yourself a cool, short <b>@in.com</b> Email ID now!</a></div>