[vtkusers] How to make sure to select a point really on 3D model when drawing angle for the model
Liu_tj
tjlp at netease.com
Sun Jul 24 21:02:29 EDT 2016
Now I change my code and use vtkAngleRepresentation3D as the representation of vtkAngleWidget. The code is as follow:
vtkAngleWidget angleWidget = vtkAngleWidget.New();
angleWidget.SetInteractor(renwin.GetInteractor());
vtkAngleRepresentation3D rep3d = vtkAngleRepresentation3D.New();
angleWidget.SetRepresentation(rep3d);
angleWidget.On();
renwin.Render();
return angleWidget;
Now I can pick a 3D point. But still the question: How to make sure to select a point really on 3D model?
Thanks
Liu Peng
在2016-07-24,"Liu_tj" <tjlp at netease.com> 写道: -----原始邮件-----
发件人:"Liu_tj" <tjlp at netease.com>
发送时间:2016年07月24日 星期日
收件人:"vtkusers" <vtkusers at vtk.org>
主题:[vtkusers] How to make sure to select a point really on 3D model when drawing angle for the model
Hi, VTK guys,
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:
vtkAngleWidget angleWidget = vtkAngleWidget.New();
angleWidget.SetInteractor(renwin.GetInteractor());
angleWidget.CreateDefaultRepresentation();
angleWidget.On();
renwin.Render();
return angleWidget;
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.
How can I ensure that the selected points are on the 3D model?
Thanks
Liu Peng
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160725/b3210ba7/attachment.html>
More information about the vtkusers
mailing list