code: function Hexagon(diameter, height) {
    var radius = diameter / 2;
    var sqrt3 = Math.sqrt(3) / 2;
    var hex = CAG.fromPoints([
      [radius, 0],
      [radius / 2, radius * sqrt3],
      [-radius / 2, radius * sqrt3],
      [-radius, 0],
      [-radius / 2, -radius * sqrt3],
      [radius / 2, -radius * sqrt3]
    ]);
  
    return hex.extrude({
      offset: [0, 0, height]
    });
  }
docs: Crate a hexagon.
  @param {number} diameter Outside diameter of the hexagon
  @param {number} height   height of the hexagon