Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gonnavis/whether_point_in_3d_model
js check whether point is in 3d model
https://github.com/gonnavis/whether_point_in_3d_model
Last synced: 22 days ago
JSON representation
js check whether point is in 3d model
- Host: GitHub
- URL: https://github.com/gonnavis/whether_point_in_3d_model
- Owner: gonnavis
- Created: 2017-10-28T18:14:24.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-11-25T07:53:24.000Z (about 4 years ago)
- Last Synced: 2024-05-28T15:59:57.118Z (7 months ago)
- Language: JavaScript
- Size: 419 KB
- Stars: 9
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# whether_point_in_3d_model
JS check whether point is in 3d model.
By algorithm that "Raycast once from the point to any direction, then check the intersects num, if is odd, the point is in the geometry."
inspired by https://blender.stackexchange.com/questions/31693/how-to-find-if-a-point-is-inside-a-mesh
related info: https://github.com/mrdoob/three.js/pull/14818