In [ ]:
import k3d
import numpy as np

points_number = 500
positions = 50 * np.random.random_sample((points_number,3)) - 25
colors = np.random.randint(0, 0xFFFFFF, points_number)

plot = k3d.plot()
points = k3d.points(positions.astype(np.float32), colors.astype(np.uint32), point_size=3.0, shader='flat')
plot += points
plot.display()
In [ ]:
plot.camera_auto_fit = False
In [ ]:
points.shader = '3d'
In [ ]:
points.shader = '3dSpecular'
In [ ]:
points.shader = 'mesh'
In [ ]:
points.mesh_detail = 5
In [ ]:
tmp = points.colors
points.colors = []
In [ ]:
points.colors = tmp
In [ ]: