Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (12 sloc) 422 Bytes
"""
Form a surface by joining two close lines.
"""
from vtkplotter import *
l1 = [[sin(x), cos(x), x / 2] for x in arange(0, 9, 0.1)]
l2 = [[sin(x) + 0.2, cos(x) + x / 15, x / 2] for x in arange(0, 9, 0.1)]
t1 = Tube(l1, c="g", r=0.02)
t2 = Tube(l2, c="b", r=0.02)
r = Ribbon(l1, l2, alpha=0.2, res=(200, 5))
r.wireframe(True).legend("ruled surf")
doc = Text(__doc__)
show(r, t1, t2, doc, viewup="z", axes=1, bg="w")
You can’t perform that action at this time.