fromJSON(json, parent) {
        var obj = parent === undefined ? new THREE.OctahedronBufferGeometry(
            json.parameters.radius,
            json.parameters.detail
        ) : parent;

        BufferGeometrySerializer.prototype.fromJSON.call(this, json, obj);

        return obj;
    }
OctahedronBufferGeometrySerializer
@author tengge / https://github.com/tengge1