[vtkusers] Updating to VTK 5.1 & vtkPolyDataMapper can't be found
W.T. Bridgman
william.t.bridgman.1 at gsfc.nasa.gov
Fri Sep 14 11:47:59 EDT 2007
Hello,
I now seem to have a (partially) successful build of VTK 5.1.+ from
CVS (September 13) and the corresponding python wrappers but it seems
the python sample codes no longer work.
For example:
wise 12% vtkpython SphereWidget.py
Traceback (most recent call last):
File "SphereWidget.py", line 54, in ?
demMapper = vtk.vtkPolyDataMapper()
AttributeError: 'module' object has no attribute 'vtkPolyDataMapper'
vtkPolyDataMapper does not appear to be in the standard 'import vtk'
step:
% vtkpython
>>> import vtk
>>> [x for x in dir(vtk) if 'PolyData' in x]
['vtkAppendPolyData', 'vtkBandedPolyDataContourFilter',
'vtkCleanPolyData', 'vtkClipPolyData', 'vtkDataSetToPolyDataFilter',
'vtkExtractPolyDataGeometry', 'vtkExtractSelectedPolyDataIds',
'vtkMaskPolyData', 'vtkPolyData', 'vtkPolyDataAlgorithm',
'vtkPolyDataCollection', 'vtkPolyDataConnectivityFilter',
'vtkPolyDataNormals', 'vtkPolyDataReader', 'vtkPolyDataSource',
'vtkPolyDataStreamer', 'vtkPolyDataToPolyDataFilter',
'vtkPolyDataWriter', 'vtkQuantizePolyDataPoints',
'vtkRTXMLPolyDataReader', 'vtkRectilinearGridToPolyDataFilter',
'vtkSelectPolyData', 'vtkShrinkPolyData', 'vtkSmoothPolyDataFilter',
'vtkStructuredGridToPolyDataFilter',
'vtkStructuredPointsToPolyDataFilter', 'vtkTransformPolyDataFilter',
'vtkUnstructuredGridToPolyDataFilter',
'vtkWindowedSincPolyDataFilter', 'vtkXMLPPolyDataReader',
'vtkXMLPPolyDataWriter', 'vtkXMLPolyDataReader', 'vtkXMLPolyDataWriter']
>>> [x for x in dir(vtk) if 'Mapper' in x]
['vtkAbstractMapper', 'vtkMapper2D']
yet the main docs suggest this method still exists. Other vtkpython
routines I'm testing seem to work.
What am I missing here?
Tom
--
Dr. William T."Tom" Bridgman Scientific Visualization
Studio
Global Science & Technology, Inc. NASA/Goddard Space Flight
Center
Email: William.T.Bridgman.1 at gsfc.nasa.gov Code 610.3
Phone: 301-286-1346 Greenbelt, MD 20771
FAX: 301-286-1634 http://svs.gsfc.nasa.gov/
More information about the vtkusers
mailing list