[vtkusers] Contour Plot

David.Pont at ensisjv.com David.Pont at ensisjv.com
Thu Oct 12 16:02:24 EDT 2006


Martin Baumann <mailsgetlost at web.de> wrote on 13/10/2006 02:07:14:

> Hi,
>
> how to create a contour plot where there exist only a given number
> of different colours?
>
> I found an example on http://www.originlab.com that shows a picture
> with a plot just the way I am planning to do:
> [image removed]
> I open a file that contains an unstructured grid containing a scalar
> as scalar field. This scalar value should be used to color the points.
>
> I searched the VTK manual and the mailing list in this matter.
> I am experimentating with vtkContourFilter but with this I can only get
> the contour lines itself.
> How can can I color the unstructured grid depending on the contour
> zone?
>
> Regards, M.B._______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: http://www.vtk.
> org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers

Martin,
  Take a look at vtkBandedPolyDataContourFilter, not sure if there is a way
to get the black lines between each band...

http://www.vtk.org/doc/release/5.0/html/a01177.html

  regards, Dave P
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20061013/5c6d6bdb/attachment.htm>


More information about the vtkusers mailing list