[vtkusers] select individual iso-lines
Dean Inglis
dean.inglis at on.aibn.com
Thu Feb 20 14:59:46 EST 2003
Hi,
thanks, vtkPolyDataConnectivityFilter does the trick
I'm just not sure how to get each one separately from
the same filter so that the data persists for both:
m_contour->SetInput(temp);
m_contour->ComputeScalarsOff();
m_contour->ComputeGradientsOff();
m_contour->ComputeNormalsOff();
m_contour->SetValue(0,0.5);
m_contour->SetNumberOfContours(1);
m_contour->Update();
m_stripper->SetInput(m_contour->GetOutput());
m_stripper->Update(); // the stripper generates two vtkPolyLine cells
m_connectivityFilter->SetExtractionModeToCellSeededRegions();
m_connectivityFilter->SetInput(m_stripper->GetOutput());
m_connectivityFilter->InitializeSeedList();
m_connectivityFilter->AddSeed(0);
m_connectivityFilter->Update();
m_periosteumMapper->SetInput(m_connectivityFilter->GetOutput());
m_periosteumActor->SetMapper(m_periosteumMapper);
m_connectivityFilter->InitializeSeedList();
m_connectivityFilter->AddSeed(1);
m_connectivityFilter->Update();
m_endosteumMapper->SetInput(m_connectivityFilter->GetOutput());
m_endosteumActor->SetMapper(m_endosteumMapper);
So what I get is the endosteum and not the periosteum too...
Dean
More information about the vtkusers
mailing list