[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 11:11:57 EDT 2016


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/20160724/610522e2/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: AngleOn3DModel.jpg
Type: image/jpeg
Size: 76477 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160724/610522e2/attachment.jpg>


More information about the vtkusers mailing list