vmd.graphics.cone

vmd.graphics.cone()

Draws a cone. Base of cone is always filled

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) – Cone radius at base, defaults to 1.0
  • radius2 (float) – Cone radius at end. Defaults to 0.0 for pointy cone. If nonzero, end will not appear as filled. resolution (int): Number of sides of cone , defaults to 6
Returns:

(int) – ID of drawn cone