[vtkusers] cosmo reader, tags

Ula Popov ula.popov at gmail.com
Mon Jan 10 02:02:51 EST 2011


Hello all,

Here is how I read two cosmo files:

    vtkCosmoReader     *reader_1 = vtkCosmoReader::New();
    vtkCosmoReader     *reader_2 = vtkCosmoReader::New();

    vtkUnstructuredGrid  *cosmo_1 = vtkUnstructuredGrid::New();
    vtkUnstructuredGrid  *cosmo_2 = vtkUnstructuredGrid::New();


    reader_1->SetFileName(cosmo_filename_1);
    reader_1->Update();
    cosmo_1 = reader_1->GetOutput(0);

    reader_2->SetFileName(cosmo_filename_2);
    reader_2->Update();
    cosmo_2 = reader_2->GetOutput(0);

    double *point_1, *point_2;

    for (int i=0; i<cosmo_1->GetNumberOfPoints(); i++)
    {
        point_1 = cosmo_1->GetPoint(i);
        point_2 = cosmo_2->GetPoint(i);
    }

Each point in cosmo file has a tag.

When I call GetPoint with i, do I get a point that has a tag=i?
If not, what does this i mean?

Thank you,
Ula
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110109/47b21b92/attachment.htm>


More information about the vtkusers mailing list