[vtkusers] Add new vertexes inside 3D structure
Chiranjib Sur
sur.chiranjib at gmail.com
Thu Nov 3 02:13:58 EDT 2016
Hi,
Looks like you are missing the operation which will "tessellate" the input
data and add more triangles (polygons). See the inlined comments below.
Thanks,
Chiranjib
On Thu, Nov 3, 2016 at 11:36 AM, jaki19 <nour_sn at hotmail.fr> wrote:
> Hallo,
>
> I'm trying to add more vertexes in my 3D structure stored in vtkpolydata
> using vtkTessellatorFilter but i don't know why I have 0 triangles in the
> output!!!
>
>
> vtkSTLReader reader = new vtkSTLReader();
> reader.SetFileName(path3d);
> reader.Update();
> vtkPolyData input = new vtkPolyData();
> input = reader.GetOutput();
> System.out.print(input.GetNumberOfPoints() + " voxels.\n"); ----> 4500
> voxels.
> System.out.print(input.GetNumberOfPolys() + " triangles.\n");-----> 6580
> triangles.
> vtkTessellatorFilter tesela= new vtkTessellatorFilter();
> tesela.SetInputData(input);
>
***** Looks like the Tesselation operation is missing ********
> tesla.Update();
> System.out.print(subdivised.GetNumberOfPoints() + " voxels.\n");----> 4500
> voxels.
> System.out.print(subdivised.GetNumberOfPolys() + " triangles.\n");-----> 0
> triangles.
>
>
>
>
>
> --
> View this message in context: http://vtk.1045678.n5.nabble.
> com/Add-new-vertexes-inside-3D-structure-tp5741022.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> 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/vtkusers/attachments/20161103/f0d6cd2c/attachment.html>
More information about the vtkusers
mailing list