[vtkusers] Visualizing dense structured grid on surface
Bill Lorensen
bill.lorensen at gmail.com
Wed Jun 1 23:30:39 EDT 2011
You could use a texture map where the texture is a grid of lines.
On Wed, Jun 1, 2011 at 1:08 PM, Artem Babayan
<artem.paraview at googlemail.com> wrote:
> Hi,
>
> I have a 2D structured grid with scalar data, which I can view as 3D
> graphics using vtkWarpScalar and vtkImageDataGeometryFilter:
>
> vtkSmartPointer<vtkImageDataGeometryFilter> filter =
> vtkSmartPointer<vtkImageDataGeometryFilter>::New();
> filter->SetInput(data_set);
>
> vtkSmartPointer<vtkWarpScalar> warper =
> vtkSmartPointer<vtkWarpScalar>::New();
> warper->SetInput(filter->GetOutput());
>
>
> Now, I want to superimpose grid lines on the surface. For simplicity,
> say, I want just to show 'wireframe' of the surface. If I simply
> switch vtkActor to 'wireframe' mode the resulting grid is too dense --
> actually it is so dense, that it looks like surface.
>
> Applying vtkMaskPolyData to the warper->GetOutputPort() removes not
> the grid lines, but 'squares' or 'cells' which form the grid --
> apparently the result of 'warper' is the set of polygons (squares),
> not the grid points.
>
> Are there any chance to make the grid lines along the surface
> 'sparser', preferably without losing the accuracy along each line?
> E.g. if I leave only 2 grid lines in each direction, I want each line
> to follow the surface.
>
> Is it possible at all?
>
> Thanks to anybody, who can help
> Artem
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
More information about the vtkusers
mailing list