[vtkusers] Problem with reading files
John Drescher
drescherjm at gmail.com
Thu Dec 30 18:24:54 EST 2010
On Wed, Dec 29, 2010 at 3:08 PM, Hamilton Woods <ghw at accutrol.com> wrote:
>
> VTK version 5.6.1
>
I just tried the DumpXMLFile example and it worked without any problem
at all in debug and release.
X:\32bit\VC.80\Libraries\vtk-5.6.1\bin\debug>DumpXMLFile.exe
Usage: DumpXMLFile.exe XMLFile1 XMLFile2 ...
X:\32bit\VC.80\Libraries\vtk-5.6.1\bin\debug>DumpXMLFile.exe
e:\Images\vtkdata\Data\blow.vtk
------------------------
e:\Images\vtkdata\Data\blow.vtk
contains a
vtkUnstructuredGrid that has 1057 cells and 687 points.
Cell type vtkTriangle occurs 928 times.
Cell type vtkQuad occurs 129 times.
contains point data with 2 arrays.
Array 0 is named displacement0
Array 1 is named thickness0
contains cell data with 0 arrays.
contains field data with 0 arrays.
X:\32bit\VC.80\Libraries\vtk-5.6.1\bin\debug>cd ..
X:\32bit\VC.80\Libraries\vtk-5.6.1\bin>cd release
X:\32bit\VC.80\Libraries\vtk-5.6.1\bin\release>DumpXMLFile.exe
e:\Images\vtkdata\Data\blow.vtk
------------------------
e:\Images\vtkdata\Data\blow.vtk
contains a
vtkUnstructuredGrid that has 1057 cells and 687 points.
Cell type vtkTriangle occurs 928 times.
Cell type vtkQuad occurs 129 times.
contains point data with 2 arrays.
Array 0 is named displacement0
Array 1 is named thickness0
contains cell data with 0 arrays.
contains field data with 0 arrays.
Here are the steps I did to get VTK up and running:
1. Extract VTK into a new source folder.
I chose x:\CMakeBased\Libraries\VTK-5.6.1
2. Open the cmake-gui program
3. Select the source folder from step 1.
4. Select a build folder
I chose x:\32bit\vc.80\Libraries\VTK-5.6.1
5. Then click configure and set the compiler version to Visual Studio 2005
I chose to build the 32 bit version for this example.
6. Then configure.
I disabled BUILD_TESTING, left BUILD_SHARED_LIBS disabled and then
enabled BUILD_EXAMPLES. These options are all available if both the
groped and advanced boxes are checked.
7. Then click generate.
This step will take a few minutes.
8. Then open a Visual Studio 2005 command prompt. And change directory
to the build folder.
For me this was
cd x:\32bit\vc.80\Libraries\VTK-5.6.1
9. Then build vtk.
The simplest way is to type vcbuild inside the build folder. I did
that and about 1 hour later it had finished building the 400+ projects
and configurations.
After this I changed directory to the bin folder and ran the examples
and they worked. In my example above I choose an image from the
vtkdata images that can be downloaded on the same page as the source
code.
John
--
John M. Drescher
More information about the vtkusers
mailing list