[vtk-developers] crash in vtkReebGraphSimplificationFilter

Lodron, Gerald Gerald.Lodron at joanneum.at
Wed Feb 5 01:32:59 EST 2014


Hello

I want to make a skeleton of my surface vtkPolyData and found the ReebGraph module. The original test runs fine, but when I replace the vtkPolyData of the test with my surface data I get an crash in vtkReebGraphSimplificationFilter (a vector is accessed out of vectors range in vtkReebGraph.cxx at line 1705). The vtkPolyDataToReebGraphFilter runs without problems....

To ensure that my surface is connected, cleaned and only out of triangles I did the following:

vtkPolyDataReader* oR = vtkPolyDataReader::New();
  oR->SetFileName("surface.vtk");
  oR->Update();

  vtkConnectivityFilter* oCon = vtkConnectivityFilter::New();
  oCon->SetInputData( oR->GetOutput() );
  oCon->SetExtractionModeToLargestRegion ();
  oCon->Update();


vtkDataSetSurfaceFilter* oEx = vtkDataSetSurfaceFilter::New();
oEx->SetInputData( oCon->GetOutput() );
oEx->Update();
oEx->GetOutput()->Print(std::cout);
  vtkCleanPolyData* oC = vtkCleanPolyData::New();
    oC->SetInputData( oEx->GetOutput() );
    oC->Update();

  vtkTriangleFilter* oT = vtkTriangleFilter::New();
  oT->SetInputData( oC->GetOutput() );
  oT->PassLinesOff();
  oT->PassVertsOff();
  oT->Update();

  vtkCleanPolyData* oC2 = vtkCleanPolyData::New();
    oC2->SetInputData( oT->GetOutput() );
    oC2->Update();

  vtkPolyData *surfaceMesh = vtkPolyData::New();
  surfaceMesh->DeepCopy(oC2->GetOutput());
  surfaceMesh->Print(std::cout);


Can anyone explain me what could happen or could I send someone my data? Or maybe someone knows a better skeletonizing of surfaces?

Thanks,
Best regards,
Gerald
_________________________________________________________________

JOANNEUM RESEARCH Forschungsgesellschaft mbH

DIGITAL - Institute for Information and Communication Technologies
Steyrergasse 17, 8010 Graz, Austria

phone: +43 316 876-1751
fax: +43 316 8769-1751
e-mail: gerald.lodron at joanneum.at<mailto:gerald.lodron at joanneum.at>
web: www.joanneum.at/digital<http://www.joanneum.at/digital>
_________________________________________________________________

This message and any attached files are confidential and intended solely for the addressee(s). Any publication, transmission or other use of the information by a person or entity other than the intended addressee(s) is prohibited. If you receive this in error please contact the sender and delete the material. The sender does not accept liability for any errors or omissions as a result of the transmission.

Please consider the environment before printing this page.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtk-developers/attachments/20140205/b2d18ca0/attachment.html>


More information about the vtk-developers mailing list