[vtkusers] converting output of vtkContourFilter from line segments to closed loop polyline
David C Thompson
dcthomp at sandia.gov
Thu Jun 22 17:56:36 EDT 2006
On Thu, 2006-06-22 at 15:30 -0600, Richard Strelitz wrote:
> I want to use contours (and isosurfaces) as discrete objects. For
> example, while vtkContourFilter generates a multitude of 2-point line
> segment cells, I want to string together those pieces belonging to the
> same contour to be shown as an N-point polyline. Absent special cases
> (hitting the boundary, duplicate points, etc.) the problem is
> straightforward. ...
> Is there a method or class that I have overlooked? Wouldn't this be a
> nice thing to have?
> Suggestions, comments, hints and even flames, welcome.
Hint: VTK/Graphics/vtkStripper does what you want. Note that it won't
create polylines with more than 100,000 segments (by fiat).
More information about the vtkusers