<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">I have a prototype that generates a super toroid surface model. A cut plane is defined to be orthogonal to the camera line of sight, and cuts through the middle of the surface model. The cut contour (generated by vtkCutter), and filled
cut contour (generated by vtkContourTriangulator) is rendered with the surface model. The surface model is shown transparent as it is only a reference. The rendering of interest is the cut contour (shown as red contour) and filled cut contour (shown as green).
Moving the mouse rotates the surface model. The cut plane stays orthogonal to the camera while the surface model rotates. By rotating the surface model, you can see the cut contour and filled cut contour get updated interactively as it slices through the middle
of the surface model.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Unfortunately, the filled cut contour does not look right and I can’t seem to figure it out. If I change the surface model to something simpler like a cone, then everything looks fine.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Also of note is that if I switch out the vtkCutter with a vtkPlaneCutter, the program crashes. I would like to use the vtkPlaneCutter since from its documentation seems to indicate that it will get better performance. The vtkPlaneCutter
crashes using either the super toroid or cone.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Attached is the source code. The stuff between “// Setup a slider widget for each varying parameter BEGIN” and “// Setup a slider widget for each varying parameter END” can be ignored as this only involves setting up sliders to manipulate
the super toroid, which comes from the ParametricSuperToroidDemo example. The setup of the pipleline for the cut contour and filled cut contour is near the bottom.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Also attached is a sample screen shot of the incorrect filled cut contour.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<table class="MsoTableGrid" border="1" cellspacing="0" cellpadding="0" width="624" style="width:467.7pt;margin-left:18.3pt;border-collapse:collapse;border:none">
<tbody>
<tr>
<td width="238" valign="top" style="width:178.8pt;border:solid white 1.0pt;padding:0in 5.4pt 0in 5.4pt">
<p class="MsoNormal" style="line-height:115%;text-autospace:none"><span style="font-size:12.0pt;line-height:115%;font-family:"Arial",sans-serif"> <o:p></o:p></span></p>
<p class="MsoNormal" align="right" style="text-align:right;line-height:115%;text-autospace:none">
<span style="font-size:12.0pt;line-height:115%;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal" align="right" style="text-align:right;line-height:115%;text-autospace:none">
<span style="font-size:12.0pt;line-height:115%;font-family:"Arial",sans-serif"><img width="224" height="74" style="width:2.3333in;height:.7708in" id="Picture_x0020_8" src="cid:image013.png@01D3B236.CFCA0DE0"><o:p></o:p></span></p>
<p class="MsoNormal" align="right" style="text-align:right;line-height:115%;text-autospace:none">
<span style="font-size:10.0pt;line-height:115%;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal" align="right" style="text-align:right;line-height:115%"><span style="font-size:12.0pt;line-height:115%;font-family:"Arial",sans-serif">
</span><span style="font-size:12.0pt;line-height:115%"><a href="https://www.facebook.com/AccurayIncorporated"><span style="font-family:"Arial",sans-serif;color:windowtext;text-decoration:none"><img border="0" width="28" height="28" style="width:.2916in;height:.2916in" id="Picture_x0020_9" src="cid:image014.png@01D3B236.CFCA0DE0"></span></a></span><span style="font-size:12.0pt;line-height:115%;font-family:"Arial",sans-serif"> </span><span style="font-size:12.0pt;line-height:115%"><a href="http://www.twitter.com/accuray"><span style="font-family:"Arial",sans-serif;color:windowtext;text-decoration:none"><img border="0" width="28" height="28" style="width:.2916in;height:.2916in" id="Picture_x0020_10" src="cid:image015.png@01D3B236.CFCA0DE0"></span></a></span><span style="font-size:12.0pt;line-height:115%;font-family:"Arial",sans-serif"> </span><span style="font-size:12.0pt;line-height:115%"><a href="https://www.linkedin.com/company/accuray"><span style="font-family:"Arial",sans-serif;color:windowtext;text-decoration:none"><img border="0" width="28" height="28" style="width:.2916in;height:.2916in" id="Picture_x0020_11" src="cid:image016.png@01D3B236.CFCA0DE0"></span></a></span><span style="font-size:12.0pt;line-height:115%;font-family:"Arial",sans-serif"> </span><span style="font-size:12.0pt;line-height:115%"><a href="https://www.youtube.com/user/AccurayIncorporated"><span style="font-family:"Arial",sans-serif;color:windowtext;text-decoration:none"><img border="0" width="28" height="28" style="width:.2916in;height:.2916in" id="Picture_x0020_12" src="cid:image017.png@01D3B236.CFCA0DE0"></span></a></span><span style="font-size:12.0pt;line-height:115%;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
</td>
<td width="20" valign="top" style="width:14.75pt;border:solid white 1.0pt;border-left:none;padding:0in 5.4pt 0in 5.4pt">
<p class="MsoNormal" style="line-height:115%;text-autospace:none"><b><span style="font-size:12.0pt;line-height:115%;font-family:"Arial",sans-serif;color:#474747"><o:p> </o:p></span></b></p>
<p class="MsoNormal" style="line-height:115%;text-autospace:none"><b><span style="font-size:12.0pt;line-height:115%;font-family:"Arial",sans-serif;color:#474747"><o:p> </o:p></span></b></p>
<p class="MsoNormal" style="line-height:115%;text-autospace:none"><span style="font-size:12.0pt;line-height:115%;font-family:"Arial",sans-serif"><img border="0" width="2" height="134" style="width:.0208in;height:1.3958in" id="Picture_x0020_13" src="cid:image018.jpg@01D3B236.CFCA0DE0" alt="/private/var/folders/fl/x96rg8l57plbh3g8pgkqcchr0000gp/T/com.microsoft.Outlook/Outlook Temp/EMAIL SIGNATURE GRFX/Asset 6.png"><b><span style="color:#474747"><o:p></o:p></span></b></span></p>
</td>
<td width="366" valign="top" style="width:274.15pt;border:solid white 1.0pt;border-left:none;padding:0in 5.4pt 0in 5.4pt">
<p class="MsoNormal" style="line-height:115%;text-autospace:none"><b><span style="font-size:12.0pt;line-height:115%;font-family:"Arial",sans-serif;color:#474747"><o:p> </o:p></span></b></p>
<p class="MsoNormal" style="line-height:115%;text-autospace:none"><b><span style="font-size:12.0pt;line-height:115%;font-family:"Arial",sans-serif;color:#474747"><o:p> </o:p></span></b></p>
<p class="MsoNormal" style="text-autospace:none"><b><span style="font-size:12.0pt;font-family:"Arial",sans-serif;color:#474747">Jeffery Lewis</span></b><span style="font-size:12.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt;font-family:"Arial",sans-serif;color:#474747">Staff Software Engineer, Treatment Planning Systems</span><span style="font-size:12.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt;font-family:"Arial",sans-serif;color:#474747"> </span><span style="font-size:12.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt;font-family:"Arial",sans-serif;color:#474747">1310 Chesapeake Terrace<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt;font-family:"Arial",sans-serif;color:#474747">Sunnyvale, CA 94089<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt;font-family:"Arial",sans-serif;color:#474747">USA<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="FR" style="font-size:12.0pt;font-family:"Arial",sans-serif;color:#474747">Tel: 1.408.789.4367<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><u><span lang="FR" style="font-size:12.0pt;font-family:"Arial",sans-serif;color:#FC4908">jlewis@accuray.com</span></u><span lang="FR" style="font-size:12.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:115%"><span lang="FR" style="font-size:12.0pt;line-height:115%;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
-- WARNING - CONFIDENTIAL INFORMATION: The information contained in the e-mail may contain confidential and privileged information and is intended solely for the use of the intended recipient(s). Access for any review, re-transmission, dissemination or other
use of, or taking of any action in regard and reliance upon this e-mail by persons or entities other than the intended recipient(s) is unauthorized and prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy
all copies of the original message and any attachments.
</body>
</html>