Octahedron#

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

Bases: k3d.platonic.PlatonicSolid

Create a octahedron solid.

Example#

import k3d
from k3d import platonic

plot = k3d.plot()

octa_1 = platonic.Octahedron()
octa_2 = platonic.Octahedron(origin=[5, -2, 3], size=0.5)

plot += octa_1.mesh
plot += octa_2.mesh

plot.display()
xx
yy
zz
00
11
22
zz
1.5-1.5
0.5-0.5
yy
00
11
22
zz
00
11
22
33
44
xx
1.5-1.5
0.5-0.5
yy
00
11
22
33
44
xx
00
11
22
zz
1.5-1.5
0.5-0.5
yy
00
11
22
zz
00
11
22
33
44
xx
1.5-1.5
0.5-0.5
yy
00
11
22
33
44
xx
00
11
22
zz
1.5-1.5
0.5-0.5
yy
00
11
22
zz
00
11
22
33
44
xx
1.5-1.5
0.5-0.5
yy
00
11
22
33
44
xx
00
11
22
zz
1.5-1.5
0.5-0.5
yy
00
11
22
zz
00
11
22
33
44
xx
1.5-1.5
0.5-0.5
yy
00
11
22
33
44
xx
00
11
22
zz
1.5-1.5
0.5-0.5
yy
00
11
22
zz
00
11
22
33
44
xx
1.5-1.5
0.5-0.5
yy
00
11
22
33
44
xx
00
11
22
zz
1.5-1.5
0.5-0.5
yy
00
11
22
zz
00
11
22
33
44
xx
1.5-1.5
0.5-0.5
yy
00
11
22
33
44
xx
00
11
22
zz
1.5-1.5
0.5-0.5
yy
00
11
22
zz
00
11
22
33
44
xx
1.5-1.5
0.5-0.5
yy
00
11
22
33
44
xx
00
11
22
zz
1.5-1.5
0.5-0.5
yy
00
11
22
zz
00
11
22
33
44
xx
1.5-1.5
0.5-0.5
yy
00
11
22
33
44
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: