[vtkusers] Contours are not displayed..!! Why..??

Rakesh Patil rakeshthp at in.com
Fri Jan 1 00:31:58 EST 2010


Well, The data file is a file containing x, y and z data in UTM coordinates. here is the code to read the file.std::string dataline;std::fstream fs;std::istringstream instream;fs.open(fname, std::ios::in);vtkDoubleArray *scatterdata = vtkDoubleArray::New();scatterdata>SetNumberOfComponents(3);for( long int i = 0; !fs.eof(); i++){double x, y, z;getline(fs, dataline);instream.clear();instream.str(dataline);if( !dataline.empty()){ instream >> x >> y >> z; scatterdata>InsertNextTuple3(x, y, z);}}fs.close();the following include files are being used:#include #include #include#include #include#include #include#include#include #include#include #include Even after including update(), it didnt show any result.. what may be the problem..??ThanksDear vtkusers ! Get Yourself a cool, short @in.com Email ID now!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100101/0f4b2bff/attachment.htm>


More information about the vtkusers mailing list