[vtk-developers] RenderWindow sizes for testing (was: is someone working on the bigmac failures?)

Bill Lorensen bill.lorensen at gmail.com
Wed Jul 5 14:30:46 EDT 2017


I think I see the problem. The vtkTesting.cxx code is producing the
wrong output. It is reporting (extent[11] - extent[0]) as a size but
the size is really (extent[1] - extent[0] + 1).

I've submitted an MR:
https://gitlab.kitware.com/vtk/vtk/merge_requests/2998


On Wed, Jul 5, 2017 at 12:20 PM, Bill Lorensen <bill.lorensen at gmail.com> wrote:
> Yes.That works for me.
>
> But please try this:
>
> Take an existing test, like:
> Imaging/Core/Testing/Python/TestHSIToRGB.py
> add
> viewer.SetSize(320,320)
>
> ctest -V -R TestHSVToRGB.py
> you should see this error:
> 1989: Image differencing failed to produce an image because images are
> different size:
> 1989: Valid image: 320, 320, 0
> 1989: Test image: 319, 319, 0
>
>
> On Wed, Jul 5, 2017 at 11:48 AM, Utkarsh Ayachit
> <utkarsh.ayachit at kitware.com> wrote:
>>> Unless I'm smoking something...
>>>
>>
>> I want what you have ;)! Attached is a modified test. It works with
>> vtkpython no matter the value of  BORDER_SIZE. What am I missing? Also, I
>> get exactly the size I request (300, 300) and not 1 pixel less.
>>
>> Utkarsh
>
>
>
> --
> Unpaid intern in BillsBasement at noware dot com



-- 
Unpaid intern in BillsBasement at noware dot com


More information about the vtk-developers mailing list