[vtk-developers] Potential Change to Viewport Coordinates

Ken Martin ken.martin at kitware.com
Tue Aug 25 10:44:55 EDT 2015


So there is an odd issue with normalized viewport coordinates that has been
around for a long time. If you draw a rectangle from 0.0 to 1.0 I would
expect it to completely cover the viewport. But currently it is logically
missing a half pixel on the left and right/top and bottom. See the picture
below of what is happening given a small four pixel window.  I seem to
recall we originally wanted pixels to be based on their centers and then
later as we added more coordinate systems realized we had an issue but left
it as it was. The idea here would be to make viewport coordinates(and
normalized VPC) behave like display coordinates with a left corner origin.
The only difference between them and display coordinates would be that they
are relative to their viewport.  This change would require about 15 updated
valid images as some labels move a tad here and there. Thoughts?







Ken Martin PhD

Chairman & CFO

Kitware Inc.

28 Corporate Drive

Clifton Park NY 12065

ken.martin at kitware.com

919 869-8871 (w)





This communication, including all attachments, contains confidential and
legally privileged information, and it is intended only for the use of the
addressee.  Access to this email by anyone else is unauthorized. If you are
not the intended recipient, any disclosure, copying, distribution or any
action taken in reliance on it is prohibited and may be unlawful. If you
received this communication in error please notify us immediately and
destroy the original message.  Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20150825/8dc88899/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 17921 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20150825/8dc88899/attachment-0001.png>


More information about the vtk-developers mailing list