[vtk-developers] [vtkusers] mesh decimation

Chiranjib Sur sur.chiranjib at gmail.com
Tue Sep 19 13:35:41 EDT 2017


Could you please share your sample code in this thread?

Thanks,
Chiranjib

On Tue, Sep 19, 2017 at 2:25 PM, Agata Krasoń <agatakrason at gmail.com> wrote:

> Hello,
>
> Thanks for your reply.
> Hmmm ... Yes, I know about that filter. I have already done this example.
> I got the same number of triangle in each mesh. But the same number of
> triangle doesn't equal the same number of points. That's my main problem  :
> (
>
> Best regards,
> Agata
>
> 2017-09-18 19:55 GMT+02:00 Chiranjib Sur <sur.chiranjib at gmail.com>:
>
>> Hi,
>> The decimation filter works on percentage of the mesh that you need to
>> decimate
>>
>> Look at this line of the example @ wiki (https://www.vtk.org/Wiki/VTK/
>> Examples/Cxx/Meshes/Decimation)
>>
>> decimate->SetTargetReduction(.10); //10% reduction (if there was 100 triangles, now there will be 90)
>>
>>
>> Hope that answers your query.
>> Thanks,
>> Chiranjib
>>
>> On Mon, Sep 18, 2017 at 8:14 PM, agatte <agatakrason at gmail.com> wrote:
>>
>>> Hello vtk users,
>>>
>>> I would like to decimate mesh (triangle meshes) polydata to constant
>>> number
>>> of points.
>>> I have already tried vtkDecimationPro filter but I could only decimate to
>>> fix number of triangles.
>>> I don't know how can I decimate a mesh to fix number of points ?
>>>
>>> I would appreciate for any help/advice.
>>>
>>>
>>> Best :)
>>>
>>>
>>>
>>>
>>> --
>>> Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html
>>> _______________________________________________
>>> 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
>>>
>>> Search the list archives at: http://markmail.org/search/?q=vtkusers
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://public.kitware.com/mailman/listinfo/vtkusers
>>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20170919/73240199/attachment.html>


More information about the vtk-developers mailing list