import k3d
import numpy as np
s = 2000
planes = []
for idx, i in enumerate(np.linspace(0, 0.01, 10)):
planes.append(
k3d.mesh([-s, i, -s,
s, i, -s,
s, i, s,
-s, i, s],
[0, 1, 2,
2, 3, 0], color=k3d.nice_colors[idx % 21])
)
camera = [49.83663876247088,
-88.39210943730646,
-72.69520130183793,
0,
0,
0,
0.32447335829264295,
-0.5361534842542378,
0.7792666302879482]
# with logarithmic_depth_buffer
plot1 = k3d.plot(camera_auto_fit=False)
plot1.camera = camera
for p in planes:
plot1 += p
plot1.display()
# without logarithmic_depth_buffer
plot2 = k3d.plot(logarithmic_depth_buffer=False, camera_auto_fit=False)
plot2.camera = camera
for p in planes:
plot2 += p
plot2.display()