[vtkusers] vtkWarpVector with vtkStructuredPointsGeometryFilter

Fabrice Vincent fabrice.vincent at creatis.insa-lyon.fr
Wed Aug 16 05:54:00 EDT 2000


Hi Jerome,

Try using vtkWarpScalar instead of vtkWarpVector.
It will warp the plane along its normal direction proportionnally to the scalar values
of the implicit function.

Fabrice


Jerome Coloos wrote:

> 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
> ___________________________________________
>
> _______________________________________________
> 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://public.kitware.com/mailman/listinfo/vtkusers

--
Fabrice VINCENT

CREATIS (CNRS UMR 5515), INSA 502, 69621 Villeurbanne, FRANCE
email: fabrice.vincent at creatis.insa-lyon.fr
tel: 04 72 43 63 06






More information about the vtkusers mailing list