[vtkusers] Creating a Lego Brick out of vtk primitives
Daniel Zuidinga
daniel.zuidinga at rwth-aachen.de
Thu Jun 9 06:32:26 EDT 2011
Hello vtk users,
i try building a lego brick with vtk primitives and addinputconnection.
Is inputconnection the wrong method to add geometry-data to a mapper?
Nothing is shown when i add a inputconnection.
my code (java):
vtkCubeSource cube = new vtkCubeSource();
vtkPolyDataMapper mapper = new vtkPolyDataMapper();
mapper.SetInputConnection(cube.GetOutputPort());
vtkCylinderSource src2 = new vtkCylinderSource();
vtkPolyDataMapper mapper2 = new vtkPolyDataMapper();
mapper.AddInputConnection(src2.GetOutputPort());
regards
daniel
More information about the vtkusers
mailing list