[vtkusers] vtkWarpVector with vtkStructuredPointsGeometryFilter

Jerome Coloos jerome.coloos at samcef.com
Wed Aug 16 03:54:55 EDT 2000


Hi,

I'm trying to view a cross section from a SampleFunction using WarpVector
(to see the relief of the section).

I made the sequence :

vtkQuadric quadric
  quadric SetCoefficients .5 1 .2 0 .1 0 0 .2 0 0

vtkSampleFunction sample
  sample SetSampleDimensions 20 20 20
  sample SetModelBounds 0 1 0 1 0 1
  sample SetImplicitFunction quadric
  sample ComputeNormalsOff

vtkStructuredPointsGeometryFilter plane
    plane SetInput [sample GetOutput]
    plane SetExtent 0 100 0 100 10 10  # Z middle plane
    plane Update

vtkWarpVector warper
    warper SetInput [plane GetOutput]

vtkDataSetMapper planeMapper
    planeMapper SetInput [warper GetOutput]
    eval planeMapper SetScalarRange  [[sample GetOutput] GetScalarRange]

vtkActor planeActor
    planeActor SetMapper planeMapper



And I got the error message "vtkWarpVector : no Input Data"

What's wrong with this script ?

__________________________________________
   ___    Jérôme COLOOS
 @/   \@  Tel : 32-4/361.69.69
  \° °/   Fax : 32-4/361.69.80
 ==\ /==  mailto:jerome.coloos at samcef.com
    °     http://www.samcef.com
SAMTECH s.a.
Parc Scientifique du Sart-Tilman
rue des Chasseurs-Ardennais, 8
B-4031 Angleur-LIEGE
___________________________________________





More information about the vtkusers mailing list