[vtkusers] Rendering, cannot get rid of hidden edges

David Gobbi david.gobbi at gmail.com
Mon Nov 26 13:23:01 EST 2018


Hi Piotr,

If the lines disappear when you interact with the window, then the problem
might be related to the depth buffer precision.  It's possible that the
initial clipping range is too large, and interaction causes it to be reset
to something more reasonable.  You can try calling ResetCamera() or
ResetCameraClippingRange() on the renderer to see what happens.

  David

On Mon, Nov 26, 2018 at 11:04 AM Piotrek Konarski <
piotrek.konarski1 at gmail.com> wrote:

> Thanks for your answer but it didn't work.
>
> On Mon, Nov 26, 2018 at 6:05 PM Allie Vacanti <allison.vacanti at kitware.com>
> wrote:
>
>> Try calling UseHiddenLineRemovalOn() on your vtkRenderer to always get
>> the "after" result.
>>
>> On Thu, Nov 15, 2018 at 3:53 PM Piotrek Konarski <
>> piotrek.konarski1 at gmail.com> wrote:
>>
>>> Hello
>>>
>>> I try to write a python script to plot unstructured grid data.
>>> Everything goes fine except for rendering. VTK renders mesh edges that
>>> should be normally invisible. Those edges disappear when I click on the
>>> interactor window which rotates the plotted object. No matter if I use an
>>> interactor, render a widow or save a screenshot to a file without rendering
>>> a window the result is always the same, the edges are visible. I attach
>>> files to illustrate the problem.
>>>
>>> I use VTK 8.1.1 on Fedora linux.
>>>
>>> Any ideas?
>>> Regards,
>>> Piotr
>>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/vtkusers/attachments/20181126/58e0bfff/attachment.html>


More information about the vtkusers mailing list