[vtkusers] VTK RedHat7.2 test

Mathieu Malaterre Mathieu.Malaterre at creatis.insa-lyon.fr
Mon Nov 17 07:16:58 EST 2003


If you have python wrapping working:

###########################################
import vtk
from vtk.util.misc import vtkGetDataRoot
VTK_DATA_ROOT = vtkGetDataRoot()

reader = vtk.vtkPolyDataReader()
reader.SetFileName(VTK_DATA_ROOT + "/Data/hello.vtk")
reader.Update()
print reader.GetOutput()
###########################################

Ref:
Examples/Modelling/Python/hello.py

You should find in the bin dir of VTK, tools that ends with
*Tests  (because BUILD_TESTING should be ON by default)

Don't forget to pass '-I' if you want interaction:

	./GraphicsCxxTests Mace -I

HTH
mathieu
Ps: Please not that VTK is a *library* and not an end-user app.


POUPONNOT Julien wrote:
> One of my users (I'm unix administrator) said : vtk
> has a problem installation because the "reader" vtk
> don't work. A proof: vtk hello.vtk ????
> I don't know what is the good result.
> How can I test vtk ? I want to prove the good (or bad)
> installation of vtk.
> Thanks
> Julien
> 
> 
> 
>  --- Mathieu Malaterre
> <Mathieu.Malaterre at creatis.insa-lyon.fr> a écrit : >
> Julien,
> 
>>	'hello.vtk' is a VTK *Data* file...what did you
>>want to do ?
>>
>>mathieu
>>
>>POUPONNOT Julien wrote:
>>
>>>Hello,
>>>
>>>I have an error on linux with an exemple on
>>
>>vtkData:
>>
>>>bash-2.05$ vtk hello.vtk
>>>lancement de vtk
>>>Error in startup script: invalid command name
>>>"Stroked"
>>>    while executing
>>>"Stroked lines spell hello...
>>>    (file "hello.vtk" line 2)
>>>bash-2.05$
>>>
>>>Who can tell me what appen ?
>>>
>>>Thanks for your help.
>>>
>>>Julien
>>>
>>>
>>
> ___________________________________________________________
> 
>>>Do You Yahoo!? -- Une adresse @yahoo.fr gratuite
>>
>>et en français !
>>
>>>Yahoo! Mail : http://fr.mail.yahoo.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
>>>
>>
>>
>>-- 
>>Mathieu Malaterre
>>CREATIS
>>28 Avenue du Doyen LEPINE
>>B.P. Lyon-Montchat
>>69394 Lyon Cedex 03
>>http://www.creatis.insa-lyon.fr/~malaterre/
>>
>>_______________________________________________
>>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 
> 
> 
> ___________________________________________________________
> Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
> Yahoo! Mail : http://fr.mail.yahoo.com
> 


-- 
Mathieu Malaterre
CREATIS
28 Avenue du Doyen LEPINE
B.P. Lyon-Montchat
69394 Lyon Cedex 03
http://www.creatis.insa-lyon.fr/~malaterre/




More information about the vtkusers mailing list