A couple of ideas to help you debug this.
- Ensure that you can render each vtp file separately. The GeometryViewer is a great tool to do a sanity check on this.
- Double check that each vtp file is getting its own vtkPolyDataReader → vtkMapper/vtkActor pipeline.
- When you add both actors to the scene, call
renderer.resetCamera(); renderWindow.render()
to make sure that the positions of your geometries are correct. You can also callactor.getBounds()
to verify that the bounds of each actor are as expected (i.e. has sufficient intersection).