After changing from vtkActor to vtkLODProp3D,
vtkNew<vtkPropPicker> picker;
picker->Pick(upPos[0], upPos[1], 0, this->GetCurrentRenderer());
if (picker->GetProp3D() == nullptr && picker->GetActor() == nullptr && picker->GetViewProp() == nullptr && picker->GetAssembly() == nullptr) {
Logger::Info("Neither Prop3D nor assembly clicked!!!");
return;
}
As above code,all of following methods:
GetProp3D()
GetActor()
GetViewProp()
GetAssembly()
will return nullptr.
Question is how to pick up a vtkLODProp3D?