[vtkusers] How can I get isolines from a FloatArray Data, I used vtkContourFilter???

Amy Henderson amy.henderson at kitware.com
Thu Jun 3 08:32:23 EDT 2004


The problem is that you have to have a surface to contour, not just a 
collection of points. Try running vtkDelaunay2D or vtkDelaunay3D on you 
polydata before you pass it to the contour filter.

- Amy

At 05:17 AM 6/3/2004, de Boer Ingo wrote:

>You have to set the input and map the output... like
>
>vtkContourFilter->SetInput(vtkPolyData);
>vtkPolyDataMapper->SetInput(vtkContourFilter->GetOutput());
>
>Also... quote:
>" You can either use the method SetValue() to specify each
>   contour value, or use GenerateValues() to generate a
>   series of evenly spaced contours... "
>
>There are also a lot of samples shipped with VTK concerning
>vtkContourFilter. You can find them linked in the help files...
>
>greets
>   Ingo
>
>---
>Dr.-Ing. Ingo H. de Boer
>
>Polytec GmbH
>Polytec-Platz 1-7, 76337 Waldbronn, Germany
>phone: ++49 7243 604 106
>fax  : ++49 7243 604 255
>
>Hi,
>I have a set of 3D points, I kept them in a FloatArray of real data.
>Then I used a polyData structure by doing SetPoints and 
>GetPointData()SetScalars().
>How to draw the isolines from thees points. I used vtkContourFilter but he 
>record this error :
>"ERROR: In C:\tp\Lib\VTK40\Graphics\vtkContourFilter.cxx, line 166
>vtkContourFilter (0272B520): No data to contour"
>_______________________________________________
>This is the private VTK discussion list.
>Please keep messages on-topic. Check the FAQ at: 
><http://public.kitware.com/cgi-bin/vtkfaq>
>Follow this link to subscribe/unsubscribe:
>http://www.vtk.org/mailman/listinfo/vtkusers






More information about the vtkusers mailing list