Uninitialized prop color value produces random results
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
The following code
import vtk import time
for _ in range(10): vtk_obj = vtk.vtkOpenGLHardwareSelector() print vtk_obj.GetPropColorValue() time.sleep(1)
produces random values until initialisation takes place.
(2.975582179396061e-38, 1.401298464324817e-45, 1.0722085646526054e-38) (0.0, 0.0, 0.0) (2.975582179396061e-38, 1.401298464324817e-45, 1.0722085646526054e-38) (5.344585974097996e-39, 1.401298464324817e-45, 5.344866233790861e-39) (2.975582179396061e-38, 1.401298464324817e-45, 1.0722085646526054e-38) (0.0, 0.0, 0.0) (4.6179809698425413e+24, 2.0110569049325306e+20, 175.439208984375) (1.7033563725959244e+35, 4.591634678053128e-41, 1.7033167585146673e+35) (4.6179809698425413e+24, 2.0110569049325306e+20, 175.439208984375) (5.344585974097996e-39, 1.401298464324817e-45, 5.344866233790861e-39)
Probably not critical but introduces randomness in a 3rd party testsuite.