Three.js - What is PlaneBufferGeometry

javascript, three.js

Solution

`PlaneBufferGeometry` is a low memory alternative for `PlaneGeometry`. the object itself differs in a lot of ways. for instance, the vertices are located in PlaneBufferGeometry are located in `PlaneBufferGeometry.attributes.position` instead of `PlaneGeometry.vertices`

you can take a quick look in the browser console to figure out more differences, but as far as i understand, since the vertices are usually spaced on a uniform distance (`X` and `Y`) from each other, only the heights (`Z`) need to be given to position a vertex.

Problem

What is PlaneBufferGeometry exactly and how it is different from PlaneGeometry? (r69)

Original source