Three.js: computeBoundingBox error when filling BufferGeometry

Created on 27 Jun 2019  路  1Comment  路  Source: mrdoob/three.js

Description of the problem

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

fiddle

screenshot

image

Three.js version
  • [x] Dev
  • [x] r106
Browser
  • [x] All of them
OS
  • [x] All of them

Most helpful comment

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

>All comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  路  3Comments

jack-jun picture jack-jun  路  3Comments

Bandit picture Bandit  路  3Comments

yqrashawn picture yqrashawn  路  3Comments

akshaysrin picture akshaysrin  路  3Comments