xeolabs / xeogl

A WebGL-based 3D engine for technical visualization. Not actively maintained.
http://xeogl.org
Other
1.14k stars 264 forks source link

Math.rayTriangleIntersection with BoxGeometry #120

Closed ghost closed 7 years ago

ghost commented 7 years ago

I can't get ray triangle intersection to work the way I'd expect with a xeogl.BoxGeometry but I can get it to work with my own triangles. Please refer to the function getTrianglesBad. I'm expecting exactly one triangle intersection when the point is inside the box. But that's not what I get. Any ideas?

https://gist.github.com/philmaker1/c452e559a4f4257f6aa9c6b3805fe69c

xeoEngine v0.1.0 Built on 2016-10-04 Master, Chrome, Linux

ghost commented 7 years ago

See: https://github.com/xeolabs/xeogl/issues/119