Tensor data
Paul Hsieh
pahsieh at usgs.gov
Thu Sep 2 16:35:39 EDT 1999
Victor: I have two suggestions. There is an example called TenEllip.tcl in
the graphics/examplesTcl directory. This code generates its own tensor
data using vtkPointLoad and then displays the tensor data as ellipses.
This might give you an idea on how to display your tensor data.
Also you can use vtkPointLoad to generate a set of tensor data and then
write it to file. You can compare this file with your own data file and
check that your tensor data are properly formatted. Good luck. Paul
Victor ALDEA wrote:
>
> Hello,
>
> I am trying to visualise an UnstructuredGrid dataset format using Vtk2.4
> under Win95. I have no problem doing this as long as the dataset atributes
> are "Scalars" or "Vectors". As soon as the file contains the "Tensors"
> field (I'm trying to visualise a StressTensor 3x3), the code dumps core. I
> have tried the simpliest code (which follow) but with the same result. If I
> remove the "Tensors" data, everything is OK. The "tensors" field format
> look as presented in "VTK User's Guide" and I did not find an example on
> how to visualise tensor data.
>
> vtkUnstructuredGridReader reader$filename
> reader$filename SetFileName $filename
> vtkDataSetMapper parisonMapper$filename
> parisonMapper$filename SetInput [reader$filename GetOutput]
> parisonMapper$filename ScalarVisibilityOff
> vtkActor Actor$filename
> Actor$filename SetMapper parisonMapper$filename
>
> Renderer AddActor Actor$filename
>
> Can somebody help me with this problem( maybe somebody has an example)?
> Thank you,
>
> Victor
> -----------------
> Victor ALDEA
>
> -----------------------------------------------------------------------------
> This is the private VTK discussion list. Please keep messages on-topic.
> Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
> To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
> <majordomo at gsao.med.ge.com>. For help, send message body containing
> "info vtkusers" to the same address. Live long and prosper.
> -----------------------------------------------------------------------------
-----------------------------------------------------------------------------
This is the private VTK discussion list. Please keep messages on-topic.
Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at gsao.med.ge.com>. For help, send message body containing
"info vtkusers" to the same address. Live long and prosper.
-----------------------------------------------------------------------------
More information about the vtkusers
mailing list