vanruesc / sparse-octree

A sparse octree data structure.
zlib License
117 stars 20 forks source link

.fetch() errors for empty PointOctrees and leaf octants in a sufficiently large Octree #30

Closed dbkaplun closed 6 years ago

dbkaplun commented 6 years ago
TypeError: Cannot read property 'length' of null
    at fetch (PointOctree.js:235)
    at fetch (PointOctree.js:227)
    at fetch (PointOctree.js:227)
    at fetch (PointOctree.js:227)
    at fetch (PointOctree.js:227)
    at PointOctree.fetch (PointOctree.js:608)
...
vanruesc commented 6 years ago

Hello,

thanks for reporting this bug! It seems like this went under the radar for quite a while.

Will fix it ASAP.

vanruesc commented 6 years ago

Fixed in sparse-octree@4.2.1