Now I change my code and use vtkAngleRepresentation3D as the representation of vtkAngleWidget. The code is as follow:<br><br> vtkAngleWidget angleWidget = vtkAngleWidget.New();<br> angleWidget.SetInteractor(renwin.GetInteractor());<br> vtkAngleRepresentation3D rep3d = vtkAngleRepresentation3D.New(); <br> angleWidget.SetRepresentation(rep3d);<br> angleWidget.On();<br> renwin.Render();<br> return angleWidget;<br><div><br>Now I can pick a 3D point. But still the question: How to make sure to select a point really on 3D model? <br><br>Thanks<br>Liu Peng<br></div>
<span>
</span>
<br> 在2016-07-24,"Liu_tj" <tjlp@netease.com> 写道:
<blockquote id="isReplyContent" style="padding-left:1ex; margin: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
-----原始邮件-----<br>
<b>发件人:</b>"Liu_tj" <tjlp@netease.com> <br>
<b>发送时间:</b>2016年07月24日 星期日<br>
<b>收件人:</b>"vtkusers" <vtkusers@vtk.org><br>
<b>主题:</b>[vtkusers] How to make sure to select a point really on 3D model when drawing angle for the model<br>
<br><div>Hi, VTK guys,<br><br>I generated a 3D model based on a series of DICOM images. Now I want to draw angle on the 3D model using vtkAngleWidget. My C# code is as below:<br> vtkAngleWidget angleWidget = vtkAngleWidget.New();<br> angleWidget.SetInteractor(renwin.GetInteractor());<br> angleWidget.CreateDefaultRepresentation();<br> angleWidget.On();<br> renwin.Render();<br> return angleWidget;<br><br>And I can select 3 points and draw an angle. But actually these 3 points are not on the 3D model. When I rotate the model, you can see it clearly as the attachment.<br><br>How can I ensure that the selected points are on the 3D model?<br><br>Thanks<br><br>Liu Peng<br></div></blockquote>