[vtkusers] Can I do Polygon Reduction on geological region using VTK?

Xie Yanbo xieyanbo at gmail.com
Mon Jul 10 03:09:54 EDT 2006


I have some map data need to reduce, and I have installed vtk-python.
But, I do not
know howto do this using vtk. PolyData.SetTargetReduction seems only useful on
3D module having many triangle. Add an additional Z axis with zero value on my
N-side polygon seems do not work.

My data looks like this, it's a N-side polygon:

path = [[113.570976, 22.125904], [113.551300, 22.110674], [113.549500,
22.116106],
    [113.551888, 22.120785], [113.556046, 22.125408], [113.572227, 22.137506],
    [113.576454, 22.137787], [113.583153, 22.133026], [113.589569, 22.132614],
    [113.591042, 22.130501], [113.590508, 22.127831], ,113.573875, 22.121744],
    [113.572014, 22.113325], [113.551300, 22.110674]]

Any advice needed, thanks.



More information about the vtkusers mailing list