Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (13 sloc) 404 Bytes
Kochanek–Bartels spline
from vtkplotter import Text, Points, KSpline, show
from random import uniform as u
pts = [(u(0, 2), u(0, 2), u(0, 2) + i) for i in range(8)]
Points(pts, r=10)
for i in range(10):
g = (i/10-0.5)*2 # from -1 to 1
KSpline(pts, continuity=g, tension=0, bias=0, closed=False).color(i)
# plot all object sofar created:
show(..., viewup="z", axes=1)
You can’t perform that action at this time.