Closed g-rodigy closed 5 months ago
Yes, Scene.snapPick()
only works with canvasPos
- I've updated the docs accordingly.
BTW do you represent one of our enterprise users? If so, please get in touch and we can prioritize support via our Jira: https://creoox.com/en/contact/
Describe the bug Hello. Has error when try get
viewer.scene.pick()
with paramsorigin
,direction
andsnapToEdge: true
. Got errorreading '0' is canvasPos[0] https://github.com/xeokit/xeokit-sdk/blob/160b384c1ee5063a0a5fbe4e899f2e744b67d23d/src/viewer/scene/webgl/Renderer.js#L1319-L1322
To Reproduce
Expected behavior If found entity get nearest edge like work with
canvasPos
.Desktop (please complete the following information):
Additional context xeokit-sdk v2.6.9