Mesh facets - Box selection

Hello anyone!

What is the best approach to find what mesh facets is inside selecting rectangle, that is drawn by mouse down and move?

I need something like selection box in three.js (three.js webgl - box selection), but I need to select mesh facets.

Thanks for any suggestions.

Hey @vistratov,

I think this is what you’re after. Hopefully it’s helpful!

https://doc.babylonjs.com/how_to/how_to_use_facetdata