<div dir="ltr">So does this mean that your software has two views, one 3D view and one 2D view?  Where the 2D view shows whatever the plane is slicing through in the 3D view?<div><br></div><div>Now you have to explain exactly what axis the "yaw" angle rotates around.  In terms of 3D graphics, a "yaw" generally means rotation around the Y axis of the display coordinate system, i.e. around the vertical axis of the camera.  Also, whenever you say "x axis", "y axis", or "z axis" make sure you are clear about whether you are talking about the axes of the data set vs. the axes of the camera vs. the axes of the sensor.  Please don't use terms like "yaw out" because I have no idea what that is supposed to mean.</div>

<div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jan 15, 2014 at 3:45 PM, Debjit Ghosh <span dir="ltr"><<a href="mailto:dghosh@chla.usc.edu" target="_blank">dghosh@chla.usc.edu</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">






<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">David,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I definitely understand.
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I have attached an image to this email which depicts what I mean by cut plane and what is produced by the positioning of the cut plane. Now, based on the axes
 drawn in the image, Y would be the axis of Roll, Z would be the axes of Pitch and X would be the axes of Yaw. Now you can imagine the cut plane which is positioned at the tip of the cone to be rolling, pitching and yawing.
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Now the orientation of the plane is controlled by a 6DOF sensor. So when the sensor rolls, the plane rolls and the image is rendered correspondingly. Similar
 for pitch. Now when the sensor is yawed, the plane remains stationary – that’s the issue at hand. The plane needs to ideally leave the bounds of the box ie. yaw out. As far as pitch is concerned, I have observed the plane moves all the way to the top surface
 of the box.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Does this make sense?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal" style="margin-left:.5in"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> David Gobbi [via VTK] [mailto:<a href="mailto:ml-node%2B" target="_blank">ml-node+</a><a href="http://user/SendEmail.jtp?type=node&node=5725431&i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>]
<br>
<b>Sent:</b> Wednesday, January 15, 2014 1:24 PM<br>
<b>To:</b> Ghosh, Debjit<br>
<b>Subject:</b> Re: 3D Slicing | vtkImageResliceMapper | No motion of cutplane in one of 3 axes (yaw)<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:.5in"><u></u> <u></u></p>
<p class="MsoNormal" style="margin-left:.5in"></p><div class="im">Hi Debjit, <br>
<br>
Your question is of the sort that is very difficult to understand without some <br>
sort of visual aid.  Do you have any diagrams that illustrate exactly what <br>
you want to achieve?  Do you have screenshots to demonstrate what the <br>
system is doing right now? <br>
<br>
  David <br>
<br>
<br></div><div><div class="h5">
On Wed, Jan 15, 2014 at 12:26 PM, Debjit Ghosh <<a href="http://user/SendEmail.jtp?type=node&node=5725429&i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>> wrote:
<u></u><u></u></div></div><p></p><div><div class="h5">
<div>
<p class="MsoNormal" style="margin-left:.5in"><br>
> I have been using the vtkImageResliceMapper to slice through a 3D volume <br>
> using the following logic (thanks to David Gobbi) where I am able to slice <br>
> in 2 out of 3 axes only. When I change the orientation of the slice in the <br>
> yaw direction there is no movement of the cut plane. I am not sure what I am <br>
> doing incorrectly here or whether this is a limitation of the system. <br>
> <br>
> Here is the code snippet which implements the slicing using the camera and I <br>
> wonder if it has to do with the default_norm that I have set to [0,0,1]: <br>
> <br>
> matrix_= imageslice->GetMatrix(); <br>
> matrix_->MultiplyPoint(default_viewup, this->view_up); <br>
> <br>
> //matrix is a 3x3 rotation matrix which defines the orientation of the <br>
> cutplane <br>
> matrix->MultiplyPoint(this->default_norm, this->normal); <br>
> <br>
> double focalPt[] = {0,0,0}; <br>
> double centerofvol[] = {dimX/2, dimY/2, dimZ/2}; double origin[] = {dimX/2, <br>
> dimY/2, 0}; <br>
> <br>
> vtkSmartPointer<vtkPlane> plane = vtkSmartPointer<vtkPlane>::New(); <br>
> plane->ProjectPoint( centerofvol, focalPt ); <br>
> <br>
> position[0] = focalPt[0] + distfromcam * this->normal[0]; position[1] = <br>
> focalPt[1] + distfromcam * this->normal[1]; position[2] = focalPt[2] + <br>
> distfromcam * this->normal[2]; <br>
> <br>
> cam->SetPosition(position);             //Orientation of the slice plane <br>
> cam->SetFocalPoint(focalPt);    //Point at which my plane is fixed <br>
> cam->SetViewUp(this->view_up); <br>
> cam->SetWindowCenter(win_center_x, win_center_y); <u></u><u></u></p>
</div>
</div></div><p class="MsoNormal" style="margin-right:0in;margin-bottom:12.0pt;margin-left:.5in">
_______________________________________________ </p></div>
<br></blockquote></div><br></div></div></div></div>