[vtkusers] how to prevent the point using vtkHandleWidget being moved out of a 3D model?
tjlp at netease.com
Tue Oct 25 12:17:41 EDT 2016
I want to draw a point on a 3D model generated from DICOM files. I use vtkHandleWidget and add PointPlacer.
vtkHandleWidget handleWidget = vtkHandleWidget.New();
vtkSphereHandleRepresentation vtkHandleRepr = vtkSphereHandleRepresentation.New();
vtkHandleRepr.GetProperty().SetColor(1.0, 0.0, 0.0);
vtkCellCentersPointPlacer pointPlacer = vtkCellCentersPointPlacer.New();
When I firstly select a posistion for this point, I can only select the position on the 3D model. After the point is drawed, when I try to move it, it can be moved out of the 3D model. It seems that the pointplacer does not work. How to solve it?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vtkusers