[Paraview] how to write boundary (face) data for 3D tetrahedra (cells) in ASCII VTK file for Paraview visualization? separate value for each face

Samuel Key samuelkey at bresnan.net
Fri Mar 13 11:31:18 EDT 2009


Victor,

An elementary way is to create a second data set of just the surface 
facets (triangles in your case) with point and/or cell data as you like.

ParaView is quite happy to read in both data sets and with the 
"eye-ball" icon in the pipeline browser you can select either or both to 
view.  The two data sets can also be independently filtered as desired.
One can use the Transformation filter to offset one with respect to the 
other. One can choose separate views in which display the data sets,

All kinds of displays become easy with two displayable graphics objects.

Sam Key

Victor Udoewa wrote:
> 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:
> (each tetrahedra gets 4 values for each of the 4 faces)
> 
> 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.
> 
> I have no idea if Paraview (or the vtk file format) knows which
> number goes to which face. I'm using the .inp file face numbering system.
> 
> 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 Kitwares mailing list 10 years ago but there
> were no responses I could find.
> 
> http://public.kitware.com/pipermail/vtkusers/1999-November/052114.html
> 
> If you can help it would be greatly appreciated. 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.
> 
> _____________________________________________________________________________________________________
>  
> _______________________________________________
> 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 ParaView Wiki at: http://paraview.org/Wiki/ParaView
> 
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: samuelkey.vcf
Type: text/x-vcard
Size: 282 bytes
Desc: not available
URL: <http://www.paraview.org/pipermail/paraview/attachments/20090313/f36e4993/attachment.vcf>


More information about the ParaView mailing list