[vtk-developers] Using Draw() from vtkOpenGLPolyDataMapper with Python Wrapper
Brad Hollister
behollis at sci.utah.edu
Wed Mar 16 16:27:01 EDT 2016
Hi,
So, I am wanting to specify user-defined vertex attributes since the
vtkOpenGLPolyDataMapper class doesn't allow this. I've seen mention of
using the Render() from a mapper:
http://vtk.1045678.n5.nabble.com/OpenGL-with-VTK-td5685633.html
However, I believe the posting may be wrong or out-of-date regarding
Render(). It looks like the Draw() function:
virtual int vtkOpenGLPolyDataMapper::Draw(vtkRenderer * ren,vtkActor
*a)
Draw method for OpenGL.
http://www.vtk.org/doc/release/7.0/html/classvtkOpenGLPolyDataMapper.html#a07de87549ffc824200b5e2eca5b4df97
is the way to go here.
Are there any examples of this being used? I am using the Python
interface, so this should be possible in Python.
Regards,
Brad
More information about the vtk-developers
mailing list