code: function (shapePath) {
                      var pointCap = Array();
                      var barycenter = BABYLON.Vector3.Zero();
                      var i;
                      for (i = 0; i < shapePath.length; i++) {
                          barycenter.addInPlace(shapePath[i]);
                      }
                      barycenter.scaleInPlace(1.0 / shapePath.length);
                      for (i = 0; i < shapePath.length; i++) {
                          pointCap.push(barycenter);
                      }
                      return pointCap;
                  }
docs: cap