11-03-2021, 03:16 PM
GetClosestHitObject uses the DXEngine's hit testing. The DXEngine automatically generates OctTree structures for meshes there have more than **** (this is defined by a static ****). This hit testing works very fast even on meshes with many triangles.
But when you useĀ EventManager3D that is defined in Ab3d.PowerToys library this uses the WPF's objects and its hit testing. This hit testing is much slower.
If you want to use the mouse events that are provided by EventManager3D please use the DXEventManager3D - see the "Ab3d.DXEngine hit testing / DXEventManager3D" sample for more info.
There is no solution in the libraries that would help you create a polyline over any mesh. However, The Ab3d.PowerToys uses similar technique (marching along triangles) to define the contour lines on the heightmap. There the problem is easier because the indexes of the sibling triangles are well known. In your case this may be more complicated. But you may use the Ab3d.Utilities.MeshAnalyzer to help you there - seeĀ https://www.ab4d.com/help/PowerToys/html...alyzer.htm
But when you useĀ EventManager3D that is defined in Ab3d.PowerToys library this uses the WPF's objects and its hit testing. This hit testing is much slower.
If you want to use the mouse events that are provided by EventManager3D please use the DXEventManager3D - see the "Ab3d.DXEngine hit testing / DXEventManager3D" sample for more info.
There is no solution in the libraries that would help you create a polyline over any mesh. However, The Ab3d.PowerToys uses similar technique (marching along triangles) to define the contour lines on the heightmap. There the problem is easier because the indexes of the sibling triangles are well known. In your case this may be more complicated. But you may use the Ab3d.Utilities.MeshAnalyzer to help you there - seeĀ https://www.ab4d.com/help/PowerToys/html...alyzer.htm
Andrej Benedik

