@Test
public void testSphericalMesh() throws Exception {

  // Only the first param is important in this test.
  Projection projection =
      Projection.createEquirectangular(
          RADIUS,
          LATITUDES,
          LONGITUDES,
          VERTICAL_FOV_DEGREES,
          HORIZONTAL_FOV_DEGREES,
          C.STEREO_MODE_MONO);
  Projection.SubMesh subMesh = projection.leftMesh.getSubMesh(0);
  assertThat(subMesh.getVertexCount()).isGreaterThan(LATITUDES * LONGITUDES);
  float[] data = subMesh.vertices;
  for (int i = 0; i < data.length; ) {
    float x = data[i++];
    float y = data[i++];
    float z = data[i++];
    assertEquals(RADIUS, Math.sqrt(x * x + y * y + z * z), EPSILON);
  }
}