<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2016-06-21 13:27 GMT+02:00 Elvis Stansvik <span dir="ltr"><<a href="mailto:elvis.stansvik@orexplore.com" target="_blank">elvis.stansvik@orexplore.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div>I just found this very old bug:<br><br>    <a href="http://www.vtk.org/Bug/view.php?id=7823" target="_blank">http://www.vtk.org/Bug/view.php?id=7823</a><br><br></div>I forgot to mention that I'm using parallell projection for the camera. Could this be the issue I'm seeing? It seems the suggested patch there was never incorporated due to test failures (?). Anyone know of some way of working around this?<span class=""><font color="#888888"><br></font></span></div></div></blockquote><div><br></div><div>It seems someone else also reported the same problem in 2009:<br><br>    <a href="http://public.kitware.com/pipermail/vtkusers/2009-April/051510.html">http://public.kitware.com/pipermail/vtkusers/2009-April/051510.html</a><br><br></div><div>Anyone know if this is the same old problem, or if it's something that may have resurfaced? I'm using VTK 7.0.0.<br><br></div><div>Elvis<br> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><span class=""><font color="#888888"><br></font></span></div><span class=""><font color="#888888">Elvis<br></font></span><div><div><div><div class="gmail_extra"><br><div class="gmail_quote"><span class="">2016-06-21 13:06 GMT+02:00 Elvis Stansvik <span dir="ltr"><<a href="mailto:elvis.stansvik@orexplore.com" target="_blank">elvis.stansvik@orexplore.com</a>></span>:<br></span><div><div class="h5"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div><div><div><div>Hi all,<br><br></div>I have a setup where the camera always moves on a cylinder of radius 3.0 around my subject (just testing with a stack of cones at the moment). The focal point is always positioned along the Y axis, and the camera may be moved up and down independent of the focus point, but the camera is always at a distance of 3 from the Y axis.<br><br></div>As soon as the user moves the camera, I reset the camera clipping range with ResetCameraClippingRange(). Despite this, when the camera and the focal point are far away from eachother, the actors (my stack of cones) get clipped by the near plane for some reason.<br><br></div>See the attached screenshot which shows the clipping.<br><br></div>What I'm doing to my camera (in response to Shift+mouse drag in my custom interactor) to end up in this situation is just:<br><br>        camera = renderer.GetActiveCamera()<br>        (x, y, z) = camera.GetPosition()<br>        camera.SetPosition(x, y - self.PanningFactor * dy, z)<br>        renderer.ResetCameraClippingRange()<br><br></div>and I've verified that the camera is always at a distance of 3.0 from the Y axis.<br><br></div>The cones I'm using in this test were created with:<br><br>    for i in range(-10, 20):<br>        coneSource = vtkConeSource()<br>        coneSource.SetDirection(0, 1, 0)<br>        coneSource.SetResolution(8)<br>        coneSource.SetCenter(0, i, 0)<br><br>        coneMapper = vtkPolyDataMapper()<br>        coneMapper.SetInputConnection(coneSource.GetOutputPort())<br><br>        coneActor = vtkActor()<br>        coneActor.SetMapper(coneMapper)<br><br>        widget.renderer.AddActor(coneActor)<br><br></div>I don't understand why I see clipping occur here, since I'm using ResetCameraClippingRange, and nothing is behind the camera. The radius of these cones is the default (0.5).<br><br></div>It's probably something stupid, but any advice is much appreciated.<span><font color="#888888"><br><br></font></span></div><span><font color="#888888">Elvis<br></font></span></div>
</blockquote></div></div></div><br></div></div></div></div></div>
</blockquote></div><br></div></div>