In elementary geometry, a polyhedron is a solid in three dimensions with flat polygonal faces, straight edges and sharp corners or vertices.

WHS.Polyhedron creates Polyhedron object by it's radius and detail.

const polyhedron = new WHS.Polyhedron({
  geometry: {
    radius: 2,
    detail: 1
  },

  material: new THREE.MeshBasicMaterial({
    color: 0xffffff
  }),

  position: [0, 100, 0]
});

polyhedron.addTo(world);

Parameters

Geometry defaults

{
  // ...

  geometry: {
    verticesOfCube: verticesOfCube, // Array.
    indicesOfFaces: indicesOfFaces, // Array.
    radius: 6, // Number.
    detail: 2 // Number.
  }
}

These defaults are additional, there are also defaults filled by MeshComponent, etc.

Instructions

{
  // ...

  geometry: ['verticesOfCube', 'indicesOfFaces', 'radius', 'detail']
}