Can't get hit object on reality data in itwin #5533
Unanswered
tusharsable98
asked this question in
General
Replies: 1 comment
-
Context reality models that are part of a display style get assigned a transient id and are treated like view decorations by locate. In order for your tool to locate transient geometry you will need to set: IModelApp.locateManager.options.allowDecorations = true; Establishing a tool's locate options is typically done in it's onPostInstall method. You can then use HitDetail.isModelHit to check if the hit represents reality data. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi All,
I am using the following code to get hit points on onclick event of a tool.
const hit = await IModelApp.locateManager.doLocate(
new LocateResponse(),
true,
ev.point,
ev.viewport,
ev.inputSource
);
but I can't get the hit object when clicked on reality data.Is there any way to get the hit point on reality data
Beta Was this translation helpful? Give feedback.
All reactions