79165700

Date: 2024-11-07 09:12:18
Score: 3.5
Natty:
Report link

I have the same problem when I use the IVtkTools_ShapePicker, I use the method to solute it.

when use IVtkTools_ShapePicker, you need construct map between vtk actor and OCC Shape, use IVtkTools_ShapeObject::SetShapeSource(shape, actor) func to construct. and your InteractorStylePick class set the picker need behind SetShapeSource, like this:

BRepPrimAPI_MakeBox box(2, 2, 2);
vtkNew<IVtkTools_ShapePicker> aShapePicker;
.....
create vtk data pipline
.....
IVtkTools_ShapeObject::SetShapeSource(shapeDS, actor);
InteractorStylePick->SetInteractorStyle(aStylePick);
Reasons:
  • Blacklisted phrase (1): I have the same problem
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): I have the same problem
  • Low reputation (1):
Posted by: wu yulong