static fromJSON( data, shapes ) {

		const geometryShapes = [];

		for ( let j = 0, jl = data.shapes.length; j < jl; j ++ ) {

			const shape = shapes[ data.shapes[ j ] ];

			geometryShapes.push( shape );

		}

		return new ShapeGeometry( geometryShapes, data.curveSegments );

	}
Factory method for creating an instance of this class from the given
JSON object.

@param {Object} data - A JSON object representing the serialized geometry.
@param {Array<Shape>} shapes - An array of shapes.
@return {ShapeGeometry} A new instance.