cylinder¶
- marxs.visualization.mayavi.cylinder(obj, display, viewer=None)[source] [edit on github]¶
Plot a cylinder for an object.
The radius is taken from the y dimensions, the length of the tube from the x dimension. The display keyword “tube-sides” (default: 20) sets the number of vortices that are used to approximate the curve.
- Parameters:
- obj
marxs.base.MarxsElement
The element that should be plotted.
- displaydict of None
Dictionary with display settings.
- viewer
mayavi.core.scene.Scene instance
. If None, the source is not added to any figure, and will be added automatically by the modules or filters. If False, no figure will be created by modules or filters applied to the source: the source can only be used for testing, or numerical algorithms, not visualization.
- obj
- Returns:
- outmayavi object
Return the result of a mayavi plotting method.