[vtkusers] Contour Widget line as a tube

David Doria daviddoria+vtk at gmail.com
Thu May 13 16:54:13 EDT 2010


On Thu, May 13, 2010 at 4:20 PM, igorznt <igorznt at gmail.com> wrote:
>
> Does anyone knows how to make the line of the contour widget a tube? By
> default it is a strip, its totally clear when you increase the line width. i
> read lots of threads in this forum and the vtk doc but i didnt find a way to
> do it.

At a quick glance it looks like you'll want to display the output of
the function:

tubeMapper->SetInput(vtkContourRepresentation::SafeDownCast(contourWidget->GetRepresentation())->GetContourRepresentationAsPolyData());

See if that helps you get started - let us know what you find out.

Thanks,

David



More information about the vtkusers mailing list