Can a 3D object that is totally enveloped by another trigger mouse events?
#4
You can call the VisualTreeHelper.HitTest method and specify the HitTestResultCallback parameter - there cast the HitTestResult to RayMeshGeometry3DHitTestResult and you will be able to get all the hit Visual3D and Model3D objects that are under the mouse.

If you are using Ab3d.DXEngine you can also call the DXViewportView.GetAllHitObjects method and get all the objects behind the mouse (if you have a complex scene with a lot of 3D objects or with many triangles, then this is much faster then the WPF code above)
Andrej Benedik
  


Messages In This Thread
RE: Can a 3D object that is totally enveloped by another trigger mouse events? - by abenedik - 03-26-2019, 11:54 AM

Forum Jump:


Users browsing this thread:
2 Guest(s)