Three-mesh-bvh: A plugin for fast geometry raycasting and spatial queries!

I’ve just added a new demo that demonstrates how to generate projected, triangle-clipped geometry edges onto a plane to produce a line geometry - accelerated using the BVH! Each potential edge is clipped by the triangles above it to produce the visible portion that would be seen from above. This could be useful for generating 2d, line vectorized versions of geometry for things like mechanical drawings or object footprints for floor plans. Using the BVH here speeds up the search for triangles by multiple orders of magnitude to keep things updating quickly!

Here’s the demo!

https://gkjohnson.github.io/three-mesh-bvh/example/bundle/edgeProjection.html

And of course some screenshots:

12 Likes