<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">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">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">http://oi51.tinypic.com/98soib.jpg</a></div><div>Wireframe of the mesh  - <a href="http://oi51.tinypic.com/r7ly10.jpg">http://oi51.tinypic.com/r7ly10.jpg</a></div>
<div>Zoomed in -  <a href="http://oi53.tinypic.com/r08k07.jpg">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>