[vtkusers] unstructured grid + tetrahedrons

Dominik Szczerba dominik at itis.ethz.ch
Thu Dec 10 08:34:24 EST 2009


You can see your tets in multiple ways:

- extract cells by region
- cell shrinking

To see the associated data:
- volume rendering
- cut slices
- clip
- contouring

Dominik

Baliki B. wrote:
> I tried "tetraMesh.vtk"  from data folder.
> 
> vtkUnstructuredGridReader reader = new vtkUnstructuredGridReader();
>     reader.SetFileName("C:/vtkData/tetraMesh.vtk");
> 
> vtkDataSetMapper mapper = new vtkDataSetMapper();
>     mapper.SetInput(reader.GetOutput());
> 
> I press w key for wireframe but i don't see the tetrahedrons, only the 
> boundary triangles.
> 
> Thanks.
> 
> 2009/12/10 David Doria <daviddoria+vtk at gmail.com 
> <mailto:daviddoria%2Bvtk at gmail.com>>
> 
>     On Thu, Dec 10, 2009 at 7:05 AM, Baliki B. <balikivtk at gmail.com
>     <mailto:balikivtk at gmail.com>> wrote:
>      > Hi,
>      >
>      > i have an unstructured grid (a file) which contains tetrahedrons.
>      > I read the file with vtkUnstructuredGridReader.
>      > Then i use a vtkDataSetMapper but i  don't really get the
>     tetrahedron but
>      > the boundary tringles.
>      >
>      > What am i doing wrong?
>      > How can i visualize it so that i can see the tetrahedrons?
>      >
>      > (Sorry if my questions are "stupid".)
>      >
>      >
> 
>     Can you send us an example file?
> 
>     Thanks,
> 
>     David
>     _______________________________________________
>     Powered by www.kitware.com <http://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
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> 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