Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to make X-rayed objects clickable? #101

Open
xeolabs opened this issue Feb 3, 2022 · 1 comment
Open

Option to make X-rayed objects clickable? #101

xeolabs opened this issue Feb 3, 2022 · 1 comment

Comments

@xeolabs
Copy link
Member

xeolabs commented Feb 3, 2022

Currently X-rayed objects are not clickable. This is by design, where the semantics of X-ray are to reveal internal objects which we want to interact with, where we want to be able to click through the X-rayed ones.

Does it make sense to allow the user to be able to click on X-rayed objects (ie. select, delete, slice them?)

If so, should that be a BIMViewer config, ie. xrayedObjectsClickable, or is there a mobile-friendly way to indicate that each click should not click through X-rayed objects?

@xeolabs
Copy link
Member Author

xeolabs commented Feb 21, 2022

Solution

See: @xeokit/xeokit-bim-viewer 2.4.6

Once gh-pages have rebuilt, this should be testable via this link:

https://xeokit.io/demo.html?projectId=Duplex&tab=models&configs=xrayPickable:true

  1. X-ray everything
  2. Activate Selection tool
  3. Click some objects

Also, it can be configured programmatically:

myBIMViewer.setConfigs({
    xrayPickable: true
});

Peek 2022-02-21 16-49

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant