# randomPointsInBufferGeometry

**URL:** <https://discourse.threejs.org/t/randompointsinbuffergeometry/33610>\
**Category:** Questions\
**Tags:** geometry\
**Created:** [January 13, 2022, 10:59pm UTC](https://discourse.threejs.org/t/randompointsinbuffergeometry/33610 "2022-01-13T22:59:02Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![prisoner849](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/prisoner849/32/535_2.png) [@prisoner849](https://discourse.threejs.org/u/prisoner849)\
**Post date:** [January 14, 2022, 6:42am UTC](https://discourse.threejs.org/t/randompointsinbuffergeometry/33610/2 "2022-01-14T06:42:00Z")

</div>

Hi!  
Approach 1: [How fill a loaded STL mesh ( NOT SIMPLE SHAPES LIKE CUBE ETC) with random particles and animate with this geometry bound in three.js - #6 by prisoner849](https://discourse.threejs.org/t/how-fill-a-loaded-stl-mesh-not-simple-shapes-like-cube-etc-with-random-particles-and-animate-with-this-geometry-bound-in-three-js/4702/6) . Awfully slow, imperfect.  
Approach 2: [Three-mesh-bvh: A plugin for fast geometry raycasting and spatial queries!](https://discourse.threejs.org/t/three-mesh-bvh-a-plugin-for-fast-geometry-raycasting-and-spatial-queries/26394) . Fast, perfect, awesome, easy-to-use.  
Used the second one here: [Sand Nefertiti (three-mesh-bvh)](https://discourse.threejs.org/t/sand-nefertiti-three-mesh-bvh/29098)

---

_[View the full topic](https://discourse.threejs.org/t/randompointsinbuffergeometry/33610)._
