<div dir="ltr">I think the best way to understand and learn is to run the example and then start tunning parameters in the example code to get a much better feeling and understanding of the function calls.<div><br></div><div>I wish I have time to do it and show some cases to you :(</div><div><br></div><div>Best wishes. HTH,</div><div>Chiranjib</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 4, 2016 at 2:23 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">the documentations are not very clear for me, I don't understand the result<br>
where are my polys??<br>
<span class=""><br>
<br>
<br>
            vtkSTLReader reader = new vtkSTLReader();<br>
            reader.SetFileName(path3d);<br>
<br>
            reader.Update();<br>
            vtkPolyData input = new vtkPolyData();<br>
            input = reader.GetOutput();<br>
<br>
</span>            System.out.println("Before subdivision" );<br>
            System.out.println("----------<wbr>-------");<br>
            System.out.print("points: "+input.GetNumberOfPoints() +<br>
"\n");/---->points: 4500/<br>
            System.out.print("polys: "+input.GetNumberOfPolys() +<br>
"\n");/------>polys: 6580/<br>
            System.out.println("Cells:<br>
"+input.GetNumberOfCells());/-<wbr>----->Cells: 6580/<br>
            System.out.println("verts:<br>
"+input.GetNumberOfVerts());/-<wbr>----->verts: 0/<br>
            System.out.println("lines:<br>
"+input.GetNumberOfLines());/-<wbr>----->lines: 0/<br>
            System.out.println("Strips:<br>
"+input.GetNumberOfStrips());-<wbr>----->Strips: 0<br>
            System.out.println("pieces:<br>
"+input.GetNumberOfPieces());-<wbr>----->pieces: 1<br>
<br>
            vtkRandomAttributeGenerator rag =new<br>
vtkRandomAttributeGenerator();<br>
            rag.SetInputData(input);<br>
<br>
<br>
            vtkTessellatorFilter tesla= new vtkTessellatorFilter();<br>
            tesla.SetInputConnection(rag.<wbr>GetOutputPort());<br>
            tesla.MergePointsOn();<br>
            tesla.Update();<br>
<br>
            for ( int odim = 1; odim < 4; ++odim )<br>
            {<br>
                      tesla.SetOutputDimension( odim );<br>
                      tesla.Update();<br>
            }<br>
<br>
            tesla.MergePointsOff();<br>
            tesla.Update();<br>
<br>
<br>
            vtkPolyData subdivised = new vtkPolyData();<br>
            subdivised.ShallowCopy(tesla.<wbr>GetOutput());<br>
<br>
<br>
            System.out.println("After Tessellation" );<br>
            System.out.println("----------<wbr>-------");<br>
            System.out.print("points"+<wbr>subdivised.GetNumberOfPoints() +<br>
"\n"); ---->points: 19740<br>
            System.out.print("polys"+<wbr>subdivised.GetNumberOfPolys() +<br>
"\n");------>polys:0<br>
<br>
System.out.println("Cells"+<wbr>subdivised.GetNumberOfCells())<wbr>;------>Cells: 0<br>
<br>
System.out.println("verts"+<wbr>subdivised.GetNumberOfVerts())<wbr>;------>verts: 0<br>
<br>
System.out.println("lines"+<wbr>subdivised.GetNumberOfLines())<wbr>;------>lines: 0<br>
<br>
System.out.println("Strips"+<wbr>subdivised.GetNumberOfStrips()<wbr>);------>Strips: 0<br>
<br>
System.out.println("pieces"+<wbr>subdivised.GetNumberOfPieces()<wbr>);------>pieces: 1<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-tp5741022p5741038.html" rel="noreferrer" target="_blank">http://vtk.1045678.n5.nabble.<wbr>com/Add-new-vertexes-inside-<wbr>3D-structure-<wbr>tp5741022p5741038.html</a><br>
<div class="HOEnZb"><div class="h5">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>
</div></div></blockquote></div><br></div>