[vtkusers] vtkVoxelContoursToSurfaceFilter - control number of triangle of the generated mesh ?
Ashika Umanga Umagiliya
aumanga at biggjapan.com
Fri Oct 22 05:49:22 EDT 2010
Thanks Jothy for your reply,
My problem is ,vtkVoxelContoursToSurfaceFilter can not generate mesh from
vtkPolyData because of number of nodes/and or/ (x,y) range of my nodes.
Here are the images:
Source image size ( around 1000x1000 )pixels.
- http://oi55.tinypic.com/2e2f2xd.jpg .
So,the maximum x,y coordinates of contour data is also in the range
1000x1000.
- http://oi51.tinypic.com/4lt9c3.jpg ,
, every small circle is added as a "vtkPoint" when generating "vtkPolyData".
Generated mesh has huge number of triangles.
Here is the genereated mesh - http://oi51.tinypic.com/98soib.jpg
Wireframe of the mesh - http://oi51.tinypic.com/r7ly10.jpg
Zoomed in - http://oi53.tinypic.com/r08k07.jpg
If the node range is 1000x1000 and number of Z axis slices is about 200
then vtkVoxelContoursToSurfaceFilter crash.
On 22 October 2010 18:00, Jothy <jothybasu at gmail.com> wrote:
> I think you could reduce it by running vtkdecimatepro on the mesh.
>
> BTW, I could not see any of your images.
>
> Jothy
>
> On Fri, Oct 22, 2010 at 2:09 AM, Ashika Umanga Umagiliya <
> aumanga at biggjapan.com> wrote:
>
>> Anyone ..please?
>>
>> On 20 October 2010 12:20, Ashika Umanga Umagiliya <aumanga at biggjapan.com>wrote:
>>
>>> Greetings all,
>>>
>>> We generate contour data using a seperate contour detecting algorithm and
>>> use "vtkVoxelContoursToSurfaceFilter" to generate the mesh.
>>> Source image size is around 1000x1000 pixels.
>>> Please refer image at - http://oi55.tinypic.com/2e2f2xd.jpg .
>>>
>>> So,the maximum x,y coordinates of contour data is also in the range
>>> 1000x1000.
>>> As see in the image at - http://oi51.tinypic.com/4lt9c3.jpg ,
>>> , every small circle is added as a "vtkPoint" when generating
>>> "vtkPolyData".
>>>
>>> At first vtk could not generate mesh and crashed .
>>> So I divide original node x,y data by 5 (scaled down by 5) before sending
>>> to "vtkPoints.SetPoint()".
>>>
>>> Still the generated mesh has huge number of triangles.
>>> Here is the genereated mesh - http://oi51.tinypic.com/98soib.jpg
>>> Wireframe of the mesh - http://oi51.tinypic.com/r7ly10.jpg
>>> Zoomed in - http://oi53.tinypic.com/r08k07.jpg
>>>
>>> My question is ,is there a way to produce the optimized number of
>>> triangles for the mesh ? ()
>>> Our target image range is from 512x512 to 2000x2000. (that is,counter )
>>> Any tips of adjusting the best triangle count depend of the image size?
>>>
>>> Thanks in advance,
>>> umanga
>>>
>>
>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the VTK FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20101022/1fa19eb3/attachment.htm>
More information about the vtkusers
mailing list