torus¶
- marxs.visualization.threejs.torus(obj, display, outfile)[source] [edit on github]¶
Output commands to display (part of) a torus.
The plot range for theta and phi is taken from the values for
coo1
andcoo2
in thedisplay
dictionary. There entries should be a list of value if less then the full torus (ranging from 0 to 2 pi in each coordinate) is desired for the plot.- Parameters:
- obj
marxs.base.MarxsElement
The element that should be plotted.
- displaydict of None
Dictionary with display settings.
- outfilefile handle
Output is written to this file.
- obj