I created a fixed length buffer, and then gradually filled it with vertices that come from a data stream to display a pointCloud.
If I try to computeBoundingBox() on the BufferGeometry it includes all the empty points on the buffer making the boundingBox extend until (0,0,0).
I would expect this to be restricted by the BufferGeometry.drawRange

The drawRange has no effect when computing the bounding volumes. In this case, you have to perform a manual computation.
Most helpful comment
The
drawRangehas no effect when computing the bounding volumes. In this case, you have to perform a manual computation.