MantisBT - VTK
View Issue Details
0015565VTK(No Category)public2015-07-06 03:422016-08-12 09:55
xabi riobe 
T.J. Corona 
normalminorhave not tried
closedmoved 
6.0.0 
 
TBD
incorrect functionality
0015565: Missing pixel with vtkPolyDataMapper2D and vtkCoordinate
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.
No tags attached.
cpp MissingPixel.cpp (2,125) 2015-07-06 03:42
https://www.vtk.org/Bug/file/9831/MissingPixel.cpp
Issue History
2015-07-06 03:42xabi riobeNew Issue
2015-07-06 03:42xabi riobeFile Added: MissingPixel.cpp
2015-08-13 11:19Cory QuammenAssigned To => T.J. Corona
2015-08-13 11:19Cory QuammenNote Added: 0034990
2015-08-13 11:19Cory QuammenStatusbacklog => active development
2015-08-13 11:19T.J. CoronaStatusactive development => backlog
2015-08-31 10:00Cory QuammenNote Added: 0035103
2015-09-02 09:27xabi riobeNote Added: 0035120
2016-08-12 09:55Kitware RobotNote Added: 0037399
2016-08-12 09:55Kitware RobotStatusbacklog => closed
2016-08-12 09:55Kitware RobotResolutionopen => moved

Notes
(0034990)
Cory Quammen   
2015-08-13 11:19   
https://gitlab.kitware.com/vtk/vtk/merge_requests/536 [^]
(0035103)
Cory Quammen   
2015-08-31 10:00   
Xabi,

Would you mind testing this change to see if it fixes the problem you were seeing?

https://gitlab.kitware.com/vtk/vtk/merge_requests/607 [^]

Thanks,
Cory
(0035120)
xabi riobe   
2015-09-02 09:27   
Yes, i tested it in my program and this fixes the problem.

Hope it can be merged for the 6.3 release!
Thank you.
(0037399)
Kitware Robot   
2016-08-12 09:55   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current VTK Issues page linked in the banner at the top of this page.