<div dir="ltr">I think you could reduce it by running vtkdecimatepro on the mesh.<br><br>BTW, I could not see any of your images.<br><br>Jothy<br><br><div class="gmail_quote">On Fri, Oct 22, 2010 at 2:09 AM, Ashika Umanga Umagiliya <span dir="ltr"><<a href="mailto:aumanga@biggjapan.com">aumanga@biggjapan.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Anyone ..please?<br><br><div class="gmail_quote">On 20 October 2010 12:20, Ashika Umanga Umagiliya <span dir="ltr"><<a href="mailto:aumanga@biggjapan.com" target="_blank">aumanga@biggjapan.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div>Greetings all,</div><div><br></div><div>We generate contour data using a seperate contour detecting algorithm and use "vtkVoxelContoursToSurfaceFilter" to generate the mesh.</div><div>Source image size is around 1000x1000 pixels. </div>
<div>Please refer image at - <a href="http://oi55.tinypic.com/2e2f2xd.jpg" target="_blank">http://oi55.tinypic.com/2e2f2xd.jpg</a> .</div><div><br></div><div>So,the maximum x,y coordinates of contour data is also in the range 1000x1000.</div>
<div>As see in the image at - <a href="http://oi51.tinypic.com/4lt9c3.jpg" target="_blank">http://oi51.tinypic.com/4lt9c3.jpg</a> ,</div><div>, every small circle is added as a "vtkPoint" when generating "vtkPolyData".</div>
<div><br></div><div>At first vtk could not generate mesh and crashed .</div><div>So I divide original node x,y data by 5 (scaled down by 5) before sending to "vtkPoints.SetPoint()".</div><div><br></div><div>Still the generated mesh has huge number of triangles.</div>
<div>Here is the genereated mesh - <a href="http://oi51.tinypic.com/98soib.jpg" target="_blank">http://oi51.tinypic.com/98soib.jpg</a></div><div>Wireframe of the mesh - <a href="http://oi51.tinypic.com/r7ly10.jpg" target="_blank">http://oi51.tinypic.com/r7ly10.jpg</a></div>
<div>Zoomed in - <a href="http://oi53.tinypic.com/r08k07.jpg" target="_blank">http://oi53.tinypic.com/r08k07.jpg</a></div><div><br></div><div>My question is ,is there a way to produce the optimized number of triangles for the mesh ? ()</div>
<div>Our target image range is from 512x512 to 2000x2000. (that is,counter )</div><div>Any tips of adjusting the best triangle count depend of the image size?</div><div><br></div><div>Thanks in advance,</div><div>umanga</div>
</blockquote></div><br>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/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" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div>