[vtkusers] Generating Cell Data for a surface built from unstructured points

Joseph_Winston at veritasdgc.com Joseph_Winston at veritasdgc.com
Mon Sep 16 16:01:31 EDT 2002


Generating Cell Data for a surface built from unstructured points

I have a surface that was built from unstructured points using the
vtkShepardMethod that contains field data.  From reading the code, it
appears that the only way that I can pick the field data is to
generate cell data for the surface since unstructured points do not
have any connectivity.  However, I have not been able to correctly
generate the cell data thus I have not been able to pick my data.

My current approach is:

   vtkPolyDataConnectivityFilter * connectivityFilter =
vtkPolyDataConnectivityFilter::New();
   connectivityFilter->SetInput(decimate->GetOutput());
   connectivityFilter->SetExtractionModeToSpecifiedRegions();
   connectivityFilter->InitializeSpecifiedRegionList();
   connectivityFilter->AddSpecifiedRegion(0);
   connectivityFilter->Update();
   cout << connectivityFilter->GetNumberOfExtractedRegions() << endl;
   connectivityFilter->Print(cout);

   vtkCellData *cellData = connectivityFilter->GetOutput()->GetCellData();
   cellData->Print(cout);

The vtkPolyDataConnectivityFilter shows that I have one region, but I don't
see any cell data.
How should I be using the vtkPolyDataConnectivityFilter?

Thanks

Jody Winston




********************************************************************************
Any  opinions  expressed  in  this  email or its  attachments are those   of the
individual  and not  necessarily  the  Company. The  information  transmitted is
intended only for the person  or entity to which it is addressed and may contain
confidential   and/or   privileged   material.   Any   review,  re-transmission,
dissemination or  other use of, or taking  of any action in  reliance upon, this
information by persons or  entities other than  the intended recipient, without
express  consent from the sender, is prohibited. Internet communications are not
necessarily secure.  No responsibility  is accepted  for changes made after this
information was sent. If you  received this in error, please contact the  sender
and delete the material from any computer.
********************************************************************************




More information about the vtkusers mailing list