[vtkusers] Smoothing polygons (vtkPolyData)

Oliver Rudolph oliver.rudolph at iisb.fraunhofer.de
Wed May 5 07:48:16 EDT 2010


Here is some sample data on the problem (I tried to send it before but
it got stuck due to size limitation).


Thanks for all your help,
Oliver




Oliver Rudolph wrote:
> David Doria wrote:
>>     Oliver Rudolph wrote:
>>
>>         Dear all!
>>
>>         Is there anything available in vtk that I simply haven't found
>>         yet for
>>         smoothing some polygonal data?
>>
>>         I have a closed polygon in 3D space (although it's actually
>>         located on a
>>         plane) which is stored as vtkPolyData. Unfortunately, it consists of
>>         quite a lot of points, even in regions of low curvature. Is
>>         there any
>>         filter that can remove some of the points automagically?
>>
>>         Best regards,
>>         Oliver
>>
>>
>> Don't forget to check the examples!
>>
> 
> Thank you for the links. I tried running these examples directly on my
> data (only changing the Reader/Writer from XML to old data format):
> 
> 
>> http://vtk.org/Wiki/VTK/Examples/Meshes/WindowedSincPolyDataFilter
> Trying to run this example on my data results in a segfault.
> 
> 
>> http://vtk.org/Wiki/VTK/Examples/Meshes/Decimation
> As I have no triangles in my data, this filter (vtkDecimatePro)
> complains about no data to decimate:
> 
> Before decimation
> ------------
> There are 6499 points.
> There are 0 triangles.
> ERROR: In
> /user_data/rudolph_local/build/VTK/Graphics/vtkDecimatePro.cxx, line 161
> vtkDecimatePro (0x626da0): No data to decimate!
> 
> After decimation
> ------------
> There are 0 points.
> There are 0 triangles.
> 
> 
>> This:
>> http://www.midasjournal.org/browse/publication/719
>>
>> will likely get you exactly the point set you want, but unfortunately
>> you are then responsible for remeshing the points.
>>
>> Good luck,
>>
>> David
> 
> Yours,
> Oliver
> 
> _______________________________________________
> 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
> 
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: initial.vtk.tgz
Type: application/x-compressed-tar
Size: 59038 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100505/49cdaf49/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: oliver_rudolph.vcf
Type: text/x-vcard
Size: 365 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100505/49cdaf49/attachment.vcf>


More information about the vtkusers mailing list