View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015565VTK(No Category)public2015-07-06 03:422016-08-12 09:55
Reporterxabi riobe 
Assigned ToT.J. Corona 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionmoved 
PlatformOSOS Version
Product Version6.0.0 
Target VersionFixed in Version 
Summary0015565: Missing pixel with vtkPolyDataMapper2D and vtkCoordinate
DescriptionWhen 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.
TagsNo tags attached.
ProjectTBD
Typeincorrect functionality
Attached Filescpp file icon MissingPixel.cpp [^] (2,125 bytes) 2015-07-06 03:42

 Relationships

  Notes
(0034990)
Cory Quammen (developer)
2015-08-13 11:19

https://gitlab.kitware.com/vtk/vtk/merge_requests/536 [^]
(0035103)
Cory Quammen (developer)
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 (reporter)
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 (administrator)
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.

 Issue History
Date Modified Username Field Change
2015-07-06 03:42 xabi riobe New Issue
2015-07-06 03:42 xabi riobe File Added: MissingPixel.cpp
2015-08-13 11:19 Cory Quammen Assigned To => T.J. Corona
2015-08-13 11:19 Cory Quammen Note Added: 0034990
2015-08-13 11:19 Cory Quammen Status backlog => active development
2015-08-13 11:19 T.J. Corona Status active development => backlog
2015-08-31 10:00 Cory Quammen Note Added: 0035103
2015-09-02 09:27 xabi riobe Note Added: 0035120
2016-08-12 09:55 Kitware Robot Note Added: 0037399
2016-08-12 09:55 Kitware Robot Status backlog => closed
2016-08-12 09:55 Kitware Robot Resolution open => moved


Copyright © 2000 - 2018 MantisBT Team