Hit test parts of the 3D model WPF

I have a large ModelVisual3D (like a car) that is divided into many smaller GeometryModel3D objects (like tires, seats, wheels, etc.).

I would like to click the ModelVisual3D test when I click and determine which GeometryModel3D was hit. I can try my car ( ModelVisual3D ), but I can’t determine which part of the car ( GeometryModel3D objects) was clicked.

Does anyone have an idea how I can determine the exact part of my model when handling the MouseLeftButtonDown event (or any other Mouse event)?

+4
source share
2 answers

Take a look at http://www.kindohm.com/technical/ComplexVisuals.htm - I believe that the mechanisms explained there will help.

0
source

This blog post shows how to conduct radiation testing using the framework:

http://blogs.msdn.com/b/wpf3d/archive/2009/05/18/3d-hit-testing.aspx

As a result of the callback, there is detail of the intersected grid, from which you can get a certain part of the intersected grid.

0
source

All Articles