Hello all,<br><br>Here is how I read two cosmo files:<br><br> vtkCosmoReader *reader_1 = vtkCosmoReader::New(); <br> vtkCosmoReader *reader_2 = vtkCosmoReader::New(); <br> <br> vtkUnstructuredGrid *cosmo_1 = vtkUnstructuredGrid::New();<br>
vtkUnstructuredGrid *cosmo_2 = vtkUnstructuredGrid::New(); <br><br> reader_1->SetFileName(cosmo_filename_1);<br> reader_1->Update();<br> cosmo_1 = reader_1->GetOutput(0);<br><br>
reader_2->SetFileName(cosmo_filename_2);<br> reader_2->Update();<br> cosmo_2 = reader_2->GetOutput(0);<br><br> double *point_1, *point_2;<br><br> for (int i=0; i<cosmo_1->GetNumberOfPoints(); i++)<br>
{ <br> point_1 = cosmo_1->GetPoint(i);<br> point_2 = cosmo_2->GetPoint(i);<br> }<br><br>Each point in cosmo file has a tag.<br><br>When I call GetPoint with i, do I get a point that has a tag=i?<br>
If not, what does this i mean?<br><br>Thank you,<br>Ula<br>