vispy.visuals.tube.
TubeVisual
Bases: vispy.visuals.mesh.MeshVisual
vispy.visuals.mesh.MeshVisual
Displays a tube around a piecewise-linear path.
The tube mesh is corrected following its Frenet curvature and torsion such that it varies smoothly along the curve, including if the tube is closed.
An array of (x, y, z) points describing the path along which the tube will be extruded.
The radius of the tube. Use array of floats as input to set radii of points individually. Defaults to 1.0.
Whether the tube should be closed, joining the last point to the first. Defaults to False.
The color(s) to use when drawing the tube. The same color is applied to each vertex of the mesh surrounding each point of the line. If the input is a ColorArray, the argument will be cycled; for instance if ‘red’ is passed then the entire tube will be red, or if [‘green’, ‘blue’] is passed then the points will alternate between these colours. Defaults to ‘purple’.
The number of points in the circle-approximating polygon of the tube’s cross section. Defaults to 8.
Same as for the MeshVisual class. Defaults to ‘smooth’.
Same as for the MeshVisual class.
Same as for the MeshVisual class. Defaults to ‘triangles’.