NeXplorer.JS | NodeJS file browser made with NWJS | Runtime Evironment library
kandi X-RAY | NeXplorer.JS Summary
kandi X-RAY | NeXplorer.JS Summary
NodeJS file browser made with NWJS
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of NeXplorer.JS
NeXplorer.JS Key Features
NeXplorer.JS Examples and Code Snippets
Community Discussions
Trending Discussions on NeXplorer.JS
QUESTION
I tried to find the position(x,y,z coordinates) of a surface in the 3D model when it is clicked using this repo. I tried clicking all over the model, but I am getting the same position (x,y,z value) for every click. Click here to see the position when i click on a surface and when I try clicking (somewhere else) in the model, I am getting the same position(x,y,z value) for that too. I have tried exactly the same thing given in the repo link for this model (urn:dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6YXBwdGVzdGJ1Y2tldG5pc2hhbnQyL2dhdGVob3VzZSUyMDEubndk). How to find the position(x,y,z coordinates) in the model? Thanks in advance.
...ANSWER
Answered 2020-Jun-15 at 13:54This is often an issue with computing the cursor coordinates relative to the canvas hosting the Forge Viewer, so make sure that these are correct in the first place. For example, clicking close to the top-left corner of the canvas should give you relative cursor coordinates close to (0,0). These relative coordinates are then passed to the Viewer APIs to do the ray casting and hit testing.
Here's another sample code that's doing the same thing (finding the world coordinates of the closest hit after clicking on the canvas):
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install NeXplorer.JS
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page