[vtkusers] Stretching vtkUnstructuredGrid
David Doria
daviddoria at gmail.com
Wed Oct 20 13:15:10 EDT 2010
On Wed, Oct 20, 2010 at 1:08 PM, Artem Babayan
<artem.paraview at googlemail.com> wrote:
> Hi,
>
> I visualize 3D scalar field defined on vtkUnstructuredGrid. I need to
> stretch it along one of the axis (the grid's domain is a vast, but
> very shallow box, so I would like to show it 'thicker'). Does anybody
> know, if it is possible?
>
> Best wishes
> Artem
Yes, it's actually quite simple:
Create a vtkTransform and set the Scale.
http://www.vtk.org/doc/nightly/html/classvtkTransform.html
Then use vtkTransformFilter like so:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/TransformFilter
David
More information about the vtkusers
mailing list