[vtkusers] Contours elevation

Martin Saturka kvutza at gmail.com
Fri Feb 22 13:19:47 EST 2008


>  Your pipeline will look something like (in Python):
>
>  warper = vtkWarpScalar()
>  warper.SetInputConnection(your_data_source.GetOutputPort())
>  warper.SetScaleFactor(1.0)
>
>  contourer = vtkContourFilter()
>  contourer.SetInputConnection(warper.GetOutputPort())
>  contourer.GenerateValues(3, 0, 10) # number of contours, min value, max value
>
>  Hope that helps,
>  Cory

Thank you, Cory, it works.
Martin



More information about the vtkusers mailing list