02-15-2022, 12:06 PM
Hi,
I have a model, that has weird behavior for selection. I am using the selection in following way:
Ray pickRay = view.DXScene.GetRayFromNearPlane((int)currentMousePosition.X, (int)currentMousePosition.Y);
SceneNode rootNode = view.DXScene.RootNode ?? view.DXScene.MasterDXScene.RootNode;
view.DXScene.GetAllHitObjects(pickRay, rootNode)
view.DXScene.GetHitSceneNodeBounds(pickRay, rootNode)
What is weird is, that the GethitSceneNodeBounds correctly returns the correct bounding box, however GetAllHitObjects does return an empty list. In the attached dump, it's SceneNode NurbsPath.003 and its child NurbsPath.003_ImportScaleFactorScaledMesh. The bounds returned belong to the child. Visually there doesn't seem to be anything wrong. The setup seems correct as well.
Best regards,
Janovsky Roman
I have a model, that has weird behavior for selection. I am using the selection in following way:
Ray pickRay = view.DXScene.GetRayFromNearPlane((int)currentMousePosition.X, (int)currentMousePosition.Y);
SceneNode rootNode = view.DXScene.RootNode ?? view.DXScene.MasterDXScene.RootNode;
view.DXScene.GetAllHitObjects(pickRay, rootNode)
view.DXScene.GetHitSceneNodeBounds(pickRay, rootNode)
What is weird is, that the GethitSceneNodeBounds correctly returns the correct bounding box, however GetAllHitObjects does return an empty list. In the attached dump, it's SceneNode NurbsPath.003 and its child NurbsPath.003_ImportScaleFactorScaledMesh. The bounds returned belong to the child. Visually there doesn't seem to be anything wrong. The setup seems correct as well.
Best regards,
Janovsky Roman