[vtkusers] Adding new points to existing mesh

David Doria daviddoria+vtk at gmail.com
Wed Apr 14 11:26:47 EDT 2010


On Wed, Apr 14, 2010 at 10:49 AM, rashedk <rashed.vtk at googlemail.com> wrote:
>
> Hi all,
>
> Is there a way to add new points to an existing mesh (composed of only
> triangle cells). So adding a point  causes the triangle to further subdivide
> into 3 smaller triangles. Is there a filter in VTK to do this, or do I have
> to do it manually by manipulating the cell and point arrays of vtkpolydata?
>
> Thanks,
>
> Rashed.

If you're just looking to generally subdivide the mesh, you can use:
http://www.vtk.org/Wiki/VTK/Examples/Subdivision

If you want a much more "local" operation (you only want to subdivide
one triangle), I guess it would be quite a pain and you'd have to do
it manually.

Thanks,

David



More information about the vtkusers mailing list