code: public static VertexData generateCone(float radius, float height) {
          final VertexData destination = new VertexData();
          final VertexAttribute positionsAttribute = new VertexAttribute("positions", DataType.FLOAT, 3);
          destination.addAttribute(0, positionsAttribute);
          final TFloatList positions = new TFloatArrayList();
          final VertexAttribute normalsAttribute = new VertexAttribute("normals", DataType.FLOAT, 3);
          destination.addAttribute(1, normalsAttribute);
          final TFloatList normals = new TFloatArrayList();
          final TIntList indices = destination.getIndices();
          // Generate the mesh
          generateCone(positions, normals, indices, radius, height);
          // Put the mesh in the vertex data
          positionsAttribute.setData(positions);
          normalsAttribute.setData(normals);
          return destination;
      }
docs: Generates a conical solid mesh. The center is at the middle of the cone.
  
  @param radius The radius of the base
  @param height The height (distance from the base to the apex)
  @return The vertex data