<div dir="ltr"><div dir="ltr" class="cye-lm-tag">dear all, <div><br></div><div class="cye-lm-tag">I am displaying a volume with an interactor style  <span style="color:rgb(111,66,193);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;white-space:pre" class="gmail-cye-lm-tag cye-lm-tag">vtkInteractorStyleImage</span>  . That means I'm looking at slices. </div><div class="cye-lm-tag"><br></div><div>I'm overlaying a group of points in space as a polydata. The expected behaviour would be to be able to see the points which are in the current slice. The slice is updated by a MouseWheelForwardEvent and MouseWheelBackwardEvent.</div><div><br></div><div>I attach a small drawing to clarify. </div><div class="cye-lm-tag">1) the drawing depicts a side view (say XZ). The camera is looking from the top on the XY plane</div><div>2) the points I am talking about are the circles connected with line.</div><div class="cye-lm-tag">3) the slice I'm showing is 1 voxel thick, is colored in red and is at Z_slice</div><div class="cye-lm-tag">4) in red are also the points I expect to see</div><div><br></div><div class="gmail-cye-lm-tag cye-lm-tag">If I display the polydata as is, I will see every point whose Z >= Z_slice, as the one below the slice will be hidden by it. Therefore:</div><div class="gmail-cye-lm-tag cye-lm-tag"><br></div><div class="gmail-cye-lm-tag cye-lm-tag">1) I use a vtkClipPolyData with a plane implicit function. </div><div class="gmail-cye-lm-tag cye-lm-tag">2) I added an observer to update the plane position on mouse wheel back/forward events. </div><div class="gmail-cye-lm-tag cye-lm-tag">3) I attached the observers to the same callback. <br></div><div class="gmail-cye-lm-tag cye-lm-tag">4) the callback puts the plane at Z_slice</div><div class="gmail-cye-lm-tag cye-lm-tag"><br></div><div class="gmail-cye-lm-tag cye-lm-tag"><br></div><div class="gmail-cye-lm-tag cye-lm-tag">While the MouseWheelBackwardEvent works fine, the MouseWheelForwardEvent does what I expect only if I shift the plane of +2 voxels in Z.</div><div><div><br></div><div>Do you have any explanation on why should I add that +2 voxel shift?</div><div><br></div><div>Thanks</div><div><br></div><div>Edo</div><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Edo</div><div>I know you think you understand what you thought I said, but I'm not sure you realize that what you heard is not what I meant (prob. Alan Greenspan)<br>:wq</div></div></div></div></div></div></div></div>