Cannot read property 'matrixWorld' of undefined
no
getBoxEdges(box) { const offset = this.cloud.offset const geometry = box.geometry const ltw = box.localToWorld const coors = geometry.vertices.map(xyz => { const world = ltw(xyz) return [world.x + offset[0], world.y + offset[1], world.z + offset[2]] }) return coors }
yes
getBoxEdges(box) { const offset = this.cloud.offset const geometry = box.geometry const coors = geometry.vertices.map(xyz => { const world = box.localToWorld(xyz) return [world.x + offset[0], world.y + offset[1], world.z + offset[2]] }) return coors }

Seonglae Cho