How to create custom geometry with certain point location?

How to create custom geometry with threeJs r71 ? Because the shape can be random. Examples of points I mean are the location of x and y eg. [5, 0], [6,2], [5, 4], [3,3]. z is the height of the mesh can be 1 or 2?

 let geom = new THREE.Geometry();
    let v1 = new THREE.Vector3(5, 0, 1),
      v2 = new THREE.Vector3(6, 2, 1),
      v3 = new THREE.Vector3(5, 4, 1),
      v4 = new THREE.Vector3(3, 3, 1),

    geom.vertices.push(v1, v2, v3, v4);
    geom.computeFaceNormals();