Programmatically set data cursor position on occluded 3D data point (mesh)

1 回表示 (過去 30 日間)
Thomas Barowski
Thomas Barowski 2017 年 6 月 12 日
I'm trying to programmatically set data cursor points on a mesh which works in general, but whenever an occluded point shall be marked, the closest point in line of sight is marked instead of the intended point. The resulting point is often on a complete different position i.e. opposite site of the the mesh. When i move the camera so that the point is visible it gets marked correctly.
I tried manipulating the "PointDataTip" options "PickableParts" and "HitTest" with no positive effect.
Any ideas on that?
Code:
ht = trisurf(mytriangulation);
hDataCursorMgr = datacursormode(ancestor(ht,'figure'));
hDatatip = createDatatip(hDataCursorMgr, ht);
set(hDatatip(n),'Position',mypos)

回答 (0 件)

カテゴリ

Help Center および File ExchangeSurfaces, Volumes, and Polygons についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by