<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Hi Yumin,<br><br>Thank you very much for your e-mail. After I change the following:<br><br>display1[2] = 0 ;<br><br>the problem still exists. After I click mouse, a line will be drawn, but it isn't perpendicular to the screen; and each time the length is different. Any other suggestions? Many thanks.<br><br>Best regards,<br>Pengdong <br><br><div><div id="SkyDrivePlaceholder"></div>&gt; Date: Wed, 9 Jan 2013 10:31:29 -0500<br>&gt; Subject: Re: [vtkusers] 3D line and coordinate system<br>&gt; From: yumin.yuan@kitware.com<br>&gt; To: xiaopd@hotmail.com<br>&gt; CC: vtkusers@vtk.org; vtk-developers@vtk.org<br>&gt; <br>&gt; The VTK display coordinates' z range is 0 to 1, try this:<br>&gt; <br>&gt;  display1[2] = 0 ;<br>&gt; <br>&gt; HTH,<br>&gt; Yumin<br>&gt; <br>&gt; On Mon, Jan 7, 2013 at 9:16 PM, Pengdong Xiao &lt;xiaopd@hotmail.com&gt; wrote:<br>&gt; &gt; display1[2] = -1 ;<br></div>                                               </div></body>
</html>