[vtkusers] vtk get_cell_neighbors returns always null

Bill Lorensen bill.lorensen at gmail.com
Sat Nov 30 10:48:04 EST 2013


Your obj file has unique edges for each polygon. The program that
produces the obj file did that.

To repair the polygons you need to "clean" the data:

  vtkSmartPointer<vtkCleanPolyData> clean =
    vtkSmartPointer<vtkCleanPolyData>::New();
  clean->SetInputConnection(reader->GetOutputPort());
  clean->Update();
  vtkSmartPointer<vtkPolyData> polydata=
    vtkSmartPointer<vtkPolyData> :: New();
  polydata=clean->GetOutput();


On Sat, Nov 30, 2013 at 10:18 AM, azmagillian87
<xrysafenia.malliastolidou at gmail.com> wrote:
> ok thx for helping
>
> i'll be here all night
>
>
>
> --
> View this message in context: http://vtk.1045678.n5.nabble.com/vtk-get-cell-neighbors-returns-always-null-tp5724696p5724744.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers



-- 
Unpaid intern in BillsBasement at noware dot com


More information about the vtkusers mailing list