Hi,
I’m working on an application that displays a LIDAR pointcloud using VTK. It displays the pointcloud in both a 3D view and a 2D overhead view.
I initially tried using vtkChartXY and vtkChartXYZ, though I want to use the full renderwing window, and really don’t want axes or a bounding cube. It seems the former can be hidden, but not the latter in the case of vtkChartXYZ. Also, in vtkChartXYZ, it seems the cube won’t automatically fit the window even with setFitToScene on - you have to set geometry or you don’t see anything (and resizing makes the size awkward). As such, I moved to simply using a vtkActor added to a renderer with a vtkPolyDataMapper and vtkTableToPolyData (to use table data).
This works more like what I want (not having the cube or geometry issues), but the default view seems to be zoomed a ways out compared to the size of the window. I tried setting the camera’s bounds, but it seems there is always a significant border around the image. Also, I was unable to replicate this for the 2D pointcloud with vtkActor2D (it seems to insist on data coordinates being pixel coordinates) - for now I’m just using a vtkActor and disabling the interactivity, but I have the same border issue there (and am rendering 3D data I don’t need there).
Any idea what I could do here to get my plots to use the full window? I’m using Python, fyi…