[vtkusers] How to convert vtkPolyData to vtkStructuredPoints?
David Doria
daviddoria at gmail.com
Mon Sep 12 07:45:15 EDT 2011
On Mon, Sep 12, 2011 at 7:36 AM, Kacper Pluta <kacper.pluta at gmail.com> wrote:
> It's possible to convert vtkPolyData to vtkStructuredPoints? I need to
> convert a few polygons to volumetric representation without using binvox.
No, it doesn't make sense. PolyData is stored simply as an explicit
list of coordinates. In contrast, StructuredPoints are a uniform grid
of points. You would have to setup a StructuredPoints with a
reasonable resolution and then find the closest point in the
StructuredPoints to each point in the PolyData or something like that.
This would certainly be a quite "lossy" conversion.
David
More information about the vtkusers
mailing list