Missing pixel with vtkPolyDataMapper2D and vtkCoordinate
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
When using vtkPolyDataMapper2D with vtkCoordinate to draw a plane, the combination of the coordinates transformations with vtkViewport leads to a final size of the polygon rendered 1 pixel short in both x and y directions.
attached is an example that illustrates the problem.
Here is a suggestion by Cory Quammen: I think this may indeed be a bug in the conversion from viewport coordinates to window coordinates. Right now, the transformation appears to be placing coordinates (1, 1) in the lower left corner of the upper right pixel, where I think it should be in the upper right corner of the pixel. When I modify vtkViewport::DisplayToNormalizedDisplay() to divide the u and v coordinates by size-1 instead of just size, the quad fills the window. This calculation should be putting the (1,1) coordinate in the upper right corner of the pixel.