Discussion:
[vtkusers] Rendering, cannot get rid of hidden edges
Piotrek Konarski
2018-11-15 20:52:55 UTC
Permalink
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
Allie Vacanti
2018-11-26 17:05:17 UTC
Permalink
Try calling UseHiddenLineRemovalOn() on your vtkRenderer to always get the
"after" result.

On Thu, Nov 15, 2018 at 3:53 PM Piotrek Konarski <
Post by Piotrek Konarski
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
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
http://www.vtk.org/Wiki/VTK_FAQ
Search the list archives at: http://markmail.org/search/?q=vtkusers
https://public.kitware.com/mailman/listinfo/vtkusers
Piotrek Konarski
2018-11-26 18:04:04 UTC
Permalink
Thanks for your answer but it didn't work.
Post by Allie Vacanti
Try calling UseHiddenLineRemovalOn() on your vtkRenderer to always get the
"after" result.
On Thu, Nov 15, 2018 at 3:53 PM Piotrek Konarski <
Post by Piotrek Konarski
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
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
http://www.vtk.org/Wiki/VTK_FAQ
Search the list archives at: http://markmail.org/search/?q=vtkusers
https://public.kitware.com/mailman/listinfo/vtkusers
David Gobbi
2018-11-26 18:23:01 UTC
Permalink
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 <
Post by Piotrek Konarski
Thanks for your answer but it didn't work.
Post by Allie Vacanti
Try calling UseHiddenLineRemovalOn() on your vtkRenderer to always get
the "after" result.
On Thu, Nov 15, 2018 at 3:53 PM Piotrek Konarski <
Post by Piotrek Konarski
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
Piotrek Konarski
2018-11-26 19:22:25 UTC
Permalink
ResetCameraClippingRange() works perfectly. Thanks a lot!
Post by David Gobbi
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 <
Post by Piotrek Konarski
Thanks for your answer but it didn't work.
On Mon, Nov 26, 2018 at 6:05 PM Allie Vacanti <
Post by Allie Vacanti
Try calling UseHiddenLineRemovalOn() on your vtkRenderer to always get
the "after" result.
On Thu, Nov 15, 2018 at 3:53 PM Piotrek Konarski <
Post by Piotrek Konarski
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
Loading...