<div dir="ltr">Hi,<div> Looks like you are missing the operation which will "tessellate" the input data and add more triangles (polygons). See the inlined comments below.</div><div>Thanks,</div><div>Chiranjib<br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 3, 2016 at 11:36 AM, jaki19 <span dir="ltr"><<a href="mailto:nour_sn@hotmail.fr" target="_blank">nour_sn@hotmail.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hallo,<br>
<br>
I'm trying to add more vertexes in my 3D structure stored in vtkpolydata<br>
using vtkTessellatorFilter but i don't know why I have 0 triangles in the<br>
output!!!<br>
<br>
<br>
vtkSTLReader reader = new vtkSTLReader();<br>
reader.SetFileName(path3d);<br>
reader.Update();<br>
vtkPolyData input = new vtkPolyData();<br>
input = reader.GetOutput();<br>
System.out.print(input.<wbr>GetNumberOfPoints() + " voxels.\n"); ----> 4500<br>
voxels.<br>
System.out.print(input.<wbr>GetNumberOfPolys() + " triangles.\n");-----> 6580<br>
triangles.<br>
vtkTessellatorFilter tesela= new vtkTessellatorFilter();<br>
tesela.SetInputData(input);<br></blockquote><div><br></div><div>***** Looks like the Tesselation operation is missing ********</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
tesla.Update();<br>
System.out.print(subdivised.<wbr>GetNumberOfPoints() + " voxels.\n");----> 4500<br>
voxels.<br>
System.out.print(subdivised.<wbr>GetNumberOfPolys() + " triangles.\n");-----> 0<br>
triangles.<br>
<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/Add-new-vertexes-inside-3D-structure-tp5741022.html" rel="noreferrer" target="_blank">http://vtk.1045678.n5.nabble.<wbr>com/Add-new-vertexes-inside-<wbr>3D-structure-tp5741022.html</a><br>
Sent from the VTK - Users mailing list archive at Nabble.com.<br>
______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_<wbr>FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/vtkusers</a><br>
</blockquote></div><br></div></div></div>