vmd.graphics.trinorm

vmd.graphics.trinorm()

Draws a triangle with given vertices and vertex normals

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
  • v3 (3-tuple of float) – (x,y,z) coordinates of third vertex
  • n1 (3-tuple of float) – (x,y,z) normal of first vertex
  • n2 (3-tuple of float) – (x,y,z) normal of second vertex
  • n3 (3-tuple of float) – (x,y,z) normal of third vertex
Returns:

(int) – ID of drawn triangle