In geometry, a dodecahedron is any polyhedron with twelve flat faces. The most familiar dodecahedron is the regular dodecahedron, which is a Platonic solid. There are also three regular star dodecahedra, which are constructed as stellations of the convex form. All of these have icosahedral symmetry, order 120.

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

const dodecahedron = new WHS.Dodecahedron({
  geometry: {
    radius: 2
  },

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

  position: {
    y: 10
  }
});

dodecahedron.addTo(world);

Parameters

Geometry defaults

{
  // ...

  geometry: {
    radius: 1, // Number
    detail: 0 // Number
  }
}

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

Instructions

{
  // ...

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