Help about VTK_DATA_ROOT (python)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Help about VTK_DATA_ROOT (python)

mozendi
Dear VTK Users,

Recently I installed python version of the VTK. I am trying to run the
script
(https://github.com/Kitware/VTK/blob/master/IO/Geometry/Testing/Python/ParticleReader.py)
for my project.
In my project, I am trying to visualize points (TEZ_INCII.xyz) with their
intensity value which varies between 0-1. However, I do not know how to set
up *reader.SetFileName("" + str(VTK_DATA_ROOT) + "/Data/Particles.raw")* .
I tried to set the file name as *reader.SetFileName("TEZ_INCII.xyz")* ,where
TEZ_INCII.xyz is the point cloud file,  but the render window shows up and
then disappears suddenly.
I printed the VTK_DATA_ROOT and I got *../../../../VTKData*. I searched the
folder VTKData in my computer but it does not exist. In all other script
examples that input any file, the VTK_DATA_ROOT is used. If I can fix this
issue, I will be able to modify examples for my own files.
Can you please help me about this issue?
I am looking forward to hearing from you

Regards
Mustafa



--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html
_______________________________________________
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 VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
https://vtk.org/mailman/listinfo/vtkusers