[vtkusers] possible to use structured points with an unstructured grid?
David Doria
daviddoria+vtk at gmail.com
Wed Feb 17 07:56:30 EST 2010
On Wed, Feb 17, 2010 at 6:44 AM, <Todd.Lee at gtri.gatech.edu> wrote:
> Good evening,
>
>
>
> I’m trying to use VTK to display a finite-difference mesh (a rectilinear
> mesh). The “cells” are the cubes of the grid, and I need to be able to
> specify properties of the cubes, the faces of the cubes, and the edges
> independently. In terms of VTK, I’ve interpreted that as types VTK_LINE(=3),
> VTK_PIXEL(=8), and VTK_VOXEL(=11). So far, I’ve been able to accomplish this
> using an unstructured grid. Unfortunately, an unstructured grid requires me
> (I think) to explicitly specify every point. Is there a way in VTK to
> “pattern” the points, like for the “structured points” dataset?
>
>
>
> Below is an example of what I currently have. I’d like to replace the
> “dataset unstructured_grid” section by the “dataset structured_points”, but
> I can’t get it to work. I appreciate any advice anyone can offer!
>
>
>
> Thanks,
>
> Todd
Hi Todd,
Take a look at this:
http://vtk.org/Wiki/VTK/Tutorials/3DDataTypes
I don't understand what you mean by:
> I need to be able to specify properties of the cubes, the faces of the cubes, and the edges
> independently
I guess I don't follow what you're trying to do - are you trying to
manually write this file? If so, I'd recommend using a vtk writer
(i.e. vtkXMLStructuredGridWriter) - it should ensure everything is
correct for you. If you try this (or if you already have) maybe you
can send us the vtk code to generate the file and we can take a look.
Thanks,
David
More information about the vtkusers
mailing list