Point clouds in vedo#
from vedo import *
settings.default_backend = "vtk" # or k3d, ipyvtk, or 2d
points = np.random.rand(2000, 3)
pts = Points(points)
pln = Plane(pos=(0.5, 0.5, 0.6), normal=(1, 0, 0), s=(1.5, 1.5))
pln.alpha(0.5)
pts
vedo.pointcloud.Points
|
show(pts, pln, axes=1).close()
pts = Points(points)
pts.cut_with_plane((0.5, 0.5, 0.6))
vedo.pointcloud.Points
|
show(pts, pln, axes=1).close()