Dodecahedron#

class k3d.platonic.Dodecahedron(origin=[0, 0, 0], size=1)[source]#

Bases: k3d.platonic.PlatonicSolid

Create a dodecahedron solid.

Example#

import k3d
from k3d import platonic

plot = k3d.plot()

dodec_1 = platonic.Dodecahedron()
dodec_2 = platonic.Dodecahedron(origin=[5, -2, 3], size=0.5)

plot += dodec_1.mesh
plot += dodec_2.mesh

plot.display()
xx
yy
zz
0.7-0.7
0.30.3
1.31.3
2.32.3
zz
1.9-1.9
0.9-0.9
0.10.1
yy
0.7-0.7
0.30.3
1.31.3
2.32.3
zz
0.7-0.7
0.30.3
1.31.3
2.32.3
3.33.3
4.34.3
xx
1.9-1.9
0.9-0.9
0.10.1
yy
0.7-0.7
0.30.3
1.31.3
2.32.3
3.33.3
4.34.3
xx
0.7-0.7
0.30.3
1.31.3
2.32.3
zz
1.9-1.9
0.9-0.9
0.10.1
yy
0.7-0.7
0.30.3
1.31.3
2.32.3
zz
0.7-0.7
0.30.3
1.31.3
2.32.3
3.33.3
4.34.3
xx
1.9-1.9
0.9-0.9
0.10.1
yy
0.7-0.7
0.30.3
1.31.3
2.32.3
3.33.3
4.34.3
xx
0.7-0.7
0.30.3
1.31.3
2.32.3
zz
1.9-1.9
0.9-0.9
0.10.1
yy
0.7-0.7
0.30.3
1.31.3
2.32.3
zz
0.7-0.7
0.30.3
1.31.3
2.32.3
3.33.3
4.34.3
xx
1.9-1.9
0.9-0.9
0.10.1
yy
0.7-0.7
0.30.3
1.31.3
2.32.3
3.33.3
4.34.3
xx
0.7-0.7
0.30.3
1.31.3
2.32.3
zz
1.9-1.9
0.9-0.9
0.10.1
yy
0.7-0.7
0.30.3
1.31.3
2.32.3
zz
0.7-0.7
0.30.3
1.31.3
2.32.3
3.33.3
4.34.3
xx
1.9-1.9
0.9-0.9
0.10.1
yy
0.7-0.7
0.30.3
1.31.3
2.32.3
3.33.3
4.34.3
xx
0.7-0.7
0.30.3
1.31.3
2.32.3
zz
1.9-1.9
0.9-0.9
0.10.1
yy
0.7-0.7
0.30.3
1.31.3
2.32.3
zz
0.7-0.7
0.30.3
1.31.3
2.32.3
3.33.3
4.34.3
xx
1.9-1.9
0.9-0.9
0.10.1
yy
0.7-0.7
0.30.3
1.31.3
2.32.3
3.33.3
4.34.3
xx
0.7-0.7
0.30.3
1.31.3
2.32.3
zz
1.9-1.9
0.9-0.9
0.10.1
yy
0.7-0.7
0.30.3
1.31.3
2.32.3
zz
0.7-0.7
0.30.3
1.31.3
2.32.3
3.33.3
4.34.3
xx
1.9-1.9
0.9-0.9
0.10.1
yy
0.7-0.7
0.30.3
1.31.3
2.32.3
3.33.3
4.34.3
xx
0.7-0.7
0.30.3
1.31.3
2.32.3
zz
1.9-1.9
0.9-0.9
0.10.1
yy
0.7-0.7
0.30.3
1.31.3
2.32.3
zz
0.7-0.7
0.30.3
1.31.3
2.32.3
3.33.3
4.34.3
xx
1.9-1.9
0.9-0.9
0.10.1
yy
0.7-0.7
0.30.3
1.31.3
2.32.3
3.33.3
4.34.3
xx
0.7-0.7
0.30.3
1.31.3
2.32.3
zz
1.9-1.9
0.9-0.9
0.10.1
yy
0.7-0.7
0.30.3
1.31.3
2.32.3
zz
0.7-0.7
0.30.3
1.31.3
2.32.3
3.33.3
4.34.3
xx
1.9-1.9
0.9-0.9
0.10.1
yy
0.7-0.7
0.30.3
1.31.3
2.32.3
3.33.3
4.34.3
xx
K3D panel
Full screen
cameraAutoFit
gridAutoFit
gridVisible
fpsMeter
Mode
View
Camera
Trackball
FOV
voxelColor
lighting
color
flat_shading
opacity
visible
wireframe
color
flat_shading
opacity
visible
wireframe
Js version: