<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div>Hi,</div><div><br></div><div>I am new to VTK. I am trying to fill small holes in a mesh I created using Kinect data. I used the <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Meshes/FillHoles">example</a> code to do that. While it works fine for small meshes, it crashes for large meshes (over 150MB in size when saved in .vtk ASCII format, roughly 15,000,000 points). I am using vtk-5.6 in Ubuntu 11.10.&nbsp;</div><div><br></div><div>Are there any tips/suggestions to make this work for large meshes? Or is there a way I can divide the mesh into small parts, apply the filter on all the parts and combine them? <br></div><div><br></div><div>The crash message is as follows:</div><div><br></div><div>ERROR: In /build/buildd/vtk-5.6.1/Filtering/vtkPolygon.cxx, line 766<br>vtkPolygon (0xc0f9d90): ERROR: start &gt;= end<br><br>***
 glibc detected *** ./WritePly: munmap_chunk(): invalid pointer: 0x0d936368 ***<br>======= Backtrace:
 =========<br>/lib/i386-linux-gnu/libc.so.6(+0x6ebc2)[0xa59bc2]<br>/lib/i386-linux-gnu/libc.so.6(+0x6ee08)[0xa59e08]<br>/usr/lib/libvtkCommon.so.5.6(_ZN20vtkDataArrayTemplateIdE11DeleteArrayEv+0x5d)[0x6fbc5d]<br>/usr/lib/libvtkCommon.so.5.6(_ZN20vtkDataArrayTemplateIdED1Ev+0x31)[0x6fe441]<br>/usr/lib/libvtkCommon.so.5.6(_ZN14vtkDoubleArrayD2Ev+0x26)[0x6fad96]<br>/usr/lib/libvtkCommon.so.5.6(_ZN14vtkDoubleArrayD0Ev+0x22)[0x6fadc2]<br>/usr/lib/libvtkCommon.so.5.6(_ZN13vtkObjectBase18UnRegisterInternalEPS_i+0x88)[0x77f068]<br>/usr/lib/libvtkCommon.so.5.6(_ZN9vtkObject18UnRegisterInternalEP13vtkObjectBasei+0x5a)[0x77e3aa]<br>/usr/lib/libvtkCommon.so.5.6(_ZN13vtkObjectBase10UnRegisterEPS_+0x1f)[0x77ee2f]<br>/usr/lib/libvtkCommon.so.5.6(_ZN13vtkObjectBase6DeleteEv+0x17)[0x77eda7]<br>/usr/lib/libvtkFiltering.so.5.6(_ZN10vtkPolygonD1Ev+0x4b)[0x4aadeb]<br>/usr/lib/libvtkFiltering.so.5.6(_ZN10vtkPolygonD0Ev+0x22)[0x4aae42]<br>/usr/lib/libvtkCommon.so.5.6(_ZN13vtk
ObjectBase18UnRegisterInternalEPS_i+0x88)[0x77f068]<br>/usr/lib/libvtkCommon.so.5.6(_ZN9vtkObject18UnRegisterInternalEP13vtkObjectBasei+0x5a)[0x77e3aa]<br>/usr/lib/libvtkCommon.so.5.6(_ZN13vtkObjectBase10UnRegisterEPS_+0x1f)[0x77ee2f]<br>/usr/lib/libvtkCommon.so.5.6(_ZN13vtkObjectBase6DeleteEv+0x17)[0x77eda7]<br>/usr/lib/libvtkFiltering.so.5.6(_ZN10vtkPolygon24NonDegenerateTriangulateEP9vtkIdList+0x523)[0x4aefe3]<br>/usr/lib/libvtkGraphics.so.5.6(_ZN18vtkFillHolesFilter11RequestDataEP14vtkInformationPP20vtkInformationVectorS3_+0xb1e)[0x11a2cee]<br>/usr/lib/libvtkFiltering.so.5.6(_ZN20vtkPolyDataAlgorithm14ProcessRequestEP14vtkInformationPP20vtkInformationVectorS3_+0xd3)[0x4a4323]<br>/usr/lib/libvtkFiltering.so.5.6(_ZN12vtkExecutive13CallAlgorithmEP14vtkInformationiPP20vtkInformationVectorS3_+0x73)[0x3d4d73]<br>/usr/lib/libvtkFiltering.so.5.6(_ZN23vtkDemandDrivenPipeline11ExecuteDataEP14vtkInformationPP20vtkInformationVectorS3_+0x56)[0x3c8456]<br>/usr/li
b/libvtkFiltering.so.5.6(_ZN23vtkDemandDrivenPipeline14ProcessRequestEP14vtkInformationPP20vtkInformationVectorS3_+0x16f)[0x3cbabf]<br>/usr/lib/libvtkFiltering.so.5.6(_ZN32vtkStreamingDemandDrivenPipeline14ProcessRequestEP14vtkInformationPP20vtkInformationVectorS3_+0xae)[0x4e517e]<br>/usr/lib/libvtkFiltering.so.5.6(_ZN23vtkDemandDrivenPipeline10UpdateDataEi+0x21a)[0x3ca33a]<br>/usr/lib/libvtkFiltering.so.5.6(_ZN32vtkStreamingDemandDrivenPipeline6UpdateEi+0xa3)[0x4e69e3]<br>/usr/lib/libvtkFiltering.so.5.6(_ZN12vtkExecutive6UpdateEv+0x56)[0x3d54b6]<br>/usr/lib/libvtkFiltering.so.5.6(_ZN23vtkDemandDrivenPipeline6UpdateEv+0x1b)[0x3c92db]<br>/usr/lib/libvtkFiltering.so.5.6(_ZN32vtkStreamingDemandDrivenPipeline6UpdateEv+0x1b)[0x4e227b]<br>/usr/lib/libvtkFiltering.so.5.6(_ZN12vtkAlgorithm6UpdateEv+0x23)[0x36d003]<br>./WritePly[0x80490fd]<br>/lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0xa04113]<br>./WritePly[0x80495a1]</div><div><br></div><div><br></d
iv><div>Thanks in advance,</div><div>Chytu.<br></div></div></body></html>