[vtkusers] Quadratic Hexahedra Continued
James C. Robinson
j.robinson at kepler-systems.com
Sun Mar 14 10:26:16 EST 2004
Mathieu,
I have checked my file format by recompiling the SampleMFC application using
the v4.2 libraries. That application reads in the file perfectly (although
it has not facility to view the different attributes - pressures/flowrates -
at the mesh nodes) and so I will conclude (for the moment) that my file
format isn't the issue. I have therefore looked closely at my program to try
and figure out why it crashes. The logic of how it works is:
Create a file with all the mesh info in it (data.vtk)
Read in this file as the new view is opened - use a
vtkUnstructuredGridReader *pMeshReader
pMeshReader->SetFileName(strdup("data.vtk"));
Then use a vtkUnstructuredGrid
pUnstructuredGrid = pMeshReader->GetOutput() ;
Now filter the grid (mesh) info to create a viewable object
pGeomFilter->SetInput(pUnstructuredGrid) ;
Then use a vtkPolyDataMapper:
pMaterialMapper->SetInput(pGeomFilter->GetOutput());
Finally associate this mapper with an actor:
pMeshMaterialActor->SetMapper(pMaterialMapper);
Are we sure that all of these objects have been sufficiently debugged and
that they work correctly with the quadratic hexahedra?
Regards,
Jim
______________________
James C. Robinson, PhD,
Chartered Engineer,
Kepler Simulation Systems Ltd.,
42 Rivergrove,
Glanmire, Co. Cork,
Eire
Tel: +353-21-4822028
Tel: +353-87-2393010
Fax: +353-21-4822028
E-mail: j.robinson at kepler-systems.com
______________________
-----Original Message-----
From: Mathieu Malaterre [mailto:mathieu.malaterre at kitware.com]
Sent: 14 March 2004 02:07
To: j.robinson at kepler-systems.com; Vtkusers at Public. Kitware. Com
Cc: mathieu.malaterre at kitware.com
Subject: Re: [vtkusers] Quadratic Hexahedra
James,
Also note that this part of the book is also freely available at:
http://vtk.org/pdf/file-formats.pdf
You can also send the file to the list we could try to open it also on our
side to check what's wrong.
HTH
Mathieu
> Dear All,
>
> I am trying to upgrade my application to run with v4.2. I have got it to
> compile and run (thank you all, Mathieu, Charl) as before. Now I want to
use
> the new objects (vtkQuadraticHexahedra), which was a major part of the
whole
> objective of upgrading to v4.2. The way my application works (lazily as
> usual) I decided to circumvent the need to create the vtkUnstructuredGrid
> directly and instead I output my FE mesh to a *.vtk file and read it in
> using a vtkUnstructuredGridReader. This worked beautifully up to now. I
have
> used the vtk file format details in my User's Guide (dated 1998 - came
with
> vtk v3.2). The problem is, the program crashes when it tries to read in
the
> file. I will be able to investigate it (line by line etc.) but I just
wanted
> to confirm that the format detailed in my book is correct (with CELL_TYPES
=
> 25 for the quadhexes).
>
> Regards,
>
> Jim
>
> ______________________
>
> James C. Robinson, PhD,
> Chartered Engineer,
> Kepler Simulation Systems Ltd.,
> 42 Rivergrove,
> Glanmire, Co. Cork,
> Eire
>
> Tel: +353-21-4822028
> Tel: +353-87-2393010
> Fax: +353-21-4822028
> E-mail: j.robinson at kepler-systems.com
> ______________________
>
>
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
<http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
More information about the vtkusers
mailing list