[vtkusers] mesh subdivision

David Doria daviddoria at gmail.com
Tue Aug 28 09:07:08 EDT 2012


On Tue, Aug 28, 2012 at 9:02 AM, NsPx <nspx.roronoa at gmail.com> wrote:

>  Hi all,
>
> I would like to decimate a mesh using a criterion (let's say "edge length
> <=1").
>
> By searching through the documentation, I find the only way is to use
> vtkStreamingTesselator coupled with vtkEdgeSubdivisionCriterion but I don't
> really understant how to use it.
>
> Mainly, I can't pass a vtkPolyData, I have to use it cell (triangle) by
> cell ? How can I use the callabacks ?
> Can someone provide some example ?
>
> Thanks by advance.
>

There are a few subdivision techniques available:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Meshes/Subdivision

Will any of those suit your needs?

To your second question (very separate from the first, no?) - you can find
an example of using a callback here:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Interaction/KeypressObserver

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120828/754efc27/attachment.htm>


More information about the vtkusers mailing list