main = (params) => {
  const shape = getShape(params)

  const area = measureArea(shape)
  const areaText = textPaths('area: ' + area.toFixed(4), -2 - params.size)

  const volume = measureVolume(shape)
  const volumeText = textPaths('volume: ' + volume.toFixed(4), -8 - params.size)

  return [shape, ...areaText, ...volumeText]
}
Measure the area and volume of different geometries at different resolutions.
@param {String} params.shape - The shape to create. ( circle | square | star | sphere | cube )
@param {Number} params.size - The size of shape to create.
@param {Number} params.segments - The resolution of the shape to create. Affects only circle and sphere.
@returns {[geometry]} The created shape, and text describing its area and volume.