How to render a box that marks the camera's view

Hello all,
I want to render a box to visualize the camera’s perspective like the image below:
image
Is there any way to do that?
Thanks.

Some possibilities: vtkCameraOrientationWidget, vtkOrientationMarkerWidget.

There is a nice demo of the second one here.

1 Like

I can recommend the vtkFrustumSource. See https://examples.vtk.org/site/Cxx/GeometricObjects/Frustum/

1 Like