Problem with selecting objects in ViewPort3D
Thank you for posting your question and providing the sample source code.

I have checked your code and found a problem in EventManager3D.

The problem could occur when multiple GeometryModel3D objects were using the same MeshGeometry3D. In this case the events can be raised on the wrong ModelEventSource3D (usually on the first registered).

I have fixed the problem.

Because the problem was quite severe I have also released a new version of Ab3d.PowerToys v7.2. The new version also has some other features and fixes - see the Ab3d.PowerToys web page for more info.

Regarding your sample code I have one recommendation:
you are creating many instances of EventManager3D (on in each CreateGeometryMode method). I would recommend to have only one EventManager3D per Viewport3D. This can improve performance with greatly reducing the number of events that need to be checked.
Andrej Benedik

Messages In This Thread
RE: Problem with selecting objects in ViewPort3D - by abenedik - 10-06-2015, 03:53 PM

Forum Jump:

Users browsing this thread:
1 Guest(s)