vispy.geometry.torusknot.
TorusKnot
Bases: object
object
Representation of a torus knot or link.
A torus knot is one that can be drawn on the surface of a torus. It is parameterised by two integers p and q as below; in fact this returns a single knot (a single curve) only if p and q are coprime, otherwise it describes multiple linked curves.
The number of times the knot winds around the outside of the torus. Defaults to 2.
The number of times the knot passes through the hole in the centre of the torus. Defaults to 3.
The number of points in the returned piecewise linear curve. If there are multiple curves (i.e. a torus link), this is the number of points in each curve. Defaults to 100.
Distance from the center of the torus tube to the center of the torus. Defaults to 10.
The radius of the torus tube. Defaults to 5.
components
A list of the vertices in each line of the torus knot or link. Even if p and q are coprime, this is a list with just one entry.
first_component
The vertices of the first component line of the torus knot or link.
major_radius
The major radius of the torus.
minor_radius
The minor radius of the torus.
num_components
The number of component lines in the torus link. This is equal to the greatest common divisor of p and q.
num_points
The number of points in the vertices returned for each knot/link component
p
The p parameter of the torus knot or link.
q
The q parameter of the torus knot or link.