[vtkusers] How to write face (boundary) data for all tetrahedra (cells) in 3D? specific color or value for each elemement face

Victor Udoewa udwvic001 at uct.ac.za
Fri Mar 13 07:05:19 EDT 2009


March 14, 2009


Hi, I am not using the VTK software, but I am writing a VTK file to
visualize with Paraview.
I have one problem--writing data for the face (boundary) of my 3D
tetrahedra (cells).
Does anyone know how to do this for an unstructured grid in vtk? The
cells are 3D tetrahedra.

Currently I use CELL_DATA and FIELD type in writing my ASCII file:

CELL_DATA 7927
FIELD FieldData 1
Boundary 4 7927 int
0 0 0 2 0 0 0 0 0 1 0 2 0 0 1 0 0 0 0 0 0 3 0 3 etc.

But when I visualize this in Paraview it doesn't seem to work well.
There are surfaces with boundary values higher than 3. Most of the
picture is correct, but the tetrahedra (cells) on the corners between
boundary groups display wrong values.


I found a similar question on the mailing list 10 years ago but saw no answer

http://public.kitware.com/pipermail/vtkusers/1999-November/052114.html

If you can help it would be greatly appreciated. And you can respond
to udoewa at gmail.com.
Thanks.


Joy,
Victor Udoewa
Research Fellow
CERECAM
University of Cape Town
http://www.cerecam.uct.ac.za/

 
______________________________________________________________________________________________ 

UNIVERSITY OF CAPE TOWN 

This e-mail is subject to the UCT ICT policies and e-mail disclaimer published on our website at http://www.uct.ac.za/about/policies/emaildisclaimer/ or obtainable from +27 21 650 4500. This e-mail is intended only for the person(s) to whom it is addressed. If the e-mail has reached you in error, please notify the author. If you are not the intended recipient of the e-mail you may not use, disclose, copy, redirect or print the content. If this e-mail is not related to the business of UCT it is sent by the sender in the sender's individual capacity.

_____________________________________________________________________________________________________
 



More information about the vtkusers mailing list