[vtkusers] Object Existence

Christian Poecher poecher at icom-consulting.de
Tue Apr 16 11:15:43 EDT 2002


Try calling a method and catch the possible error:

vtkCubeSource cube
if { [catch {set i [cube GetMTime]}] } {
   puts stderr "cube does not exist"
   exit -1
}

chris

Giancarlo Amati schrieb:
> 
> Hello Everybody,
> 
> I would ask you if TCL have some particular functions to test the
> existence of a VTK object.

-- 
________________________________________________________________________
Christian Poecher                      mailto:poecher at icom-consulting.de
ICOM GmbH   					Phone: +49 241 9367-1554
Schloss-Rahe-Str. 15, 52072 Aachen, Germany     Fax  : +49 241 9367-1589
________________________________________________________________________



More information about the vtkusers mailing list