Anyone ..please?<br><br><div class="gmail_quote">On 20 October 2010 12:20, Ashika Umanga Umagiliya <span dir="ltr">&lt;<a href="mailto:aumanga@biggjapan.com">aumanga@biggjapan.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div>Greetings all,</div><div><br></div><div>We generate contour data using a seperate contour detecting algorithm and use &quot;vtkVoxelContoursToSurfaceFilter&quot; 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 &quot;vtkPoint&quot; when generating &quot;vtkPolyData&quot;.</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  &quot;vtkPoints.SetPoint()&quot;.</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>