vmd.graphics.cylinder

vmd.graphics.cylinder()

Draws a cylinder

Parameters:
  • molid (int) – Molecule ID to draw on
  • v1 (3-tuple of float) – (x,y,z) coordinates of first vertex
  • v2 (3-tuple of float) – (x,y,z) coordinates of second vertex
  • radius (float) – Cylinder radius, defaults to 1.0
  • resolution (int) – Number of sides of cylinder, defaults to 6
  • filled (bool) – If cylinder ends should be capped
Returns:

(int) – ID of drawn cylinder