11.07.2015 Views

VMD User's Guide

VMD User's Guide

VMD User's Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

• cylinder {x1 y1 z1} {x2 y2 z2} [radius r] [resolutionn] [filled ]:Draws a cylinder of the given radius (default r=1) from the first point to the second. Thecylinder is actually drawn as an n sided polygon. If the filled option is true, the ends arecapped with flat disks, otherwise the cylinder is hollow (default). width of the base. Theresolution parameter (default n=6) determines the number of polygons used in the approximation.• cone {basex basey basez} {tipz tipy tipz} [radius r] [resolutionn]:Draw a cone with the center of the base at the first point and the tip at the second. Theradius(default r=1) determines the width of the base. As with cylinder, theresolution(default n=6) determines the number of polygons used in the approximation.• triangle {x1 y1 z1} {x2 y2 z3} {x3 y3 z3}:Draws a triangle with endpoints at each of the three vertices• trinorm {x1 y1 z1} {x2 y2 z3} {x3 y3 z3} {nx1 y1 z1} {nx2 ny2 nz3} {nx3 ny3 nz3}:Draws a triangle with endpoints at each of the first three points. The second group of threevalues specify the normals for the three points. This is used for making a smooth shadingacross the triangle. The normals must be normalized to unit-length for proper display.• tricolor {x1 y1 z1} {x2 y2 z3} {x3 y3 z3} {nx1y1z1}{nx2 ny2 nz3} {nx3 ny3 nz3} c1c2 c3:Draws a triangle with endpoints at each of the first three points. The second group of threevalues specify the normals for the three points. The last three integers indicate the colorsto apply to each vertex. This is used for making a smooth shading across the triangle. Thenormals must be normalized to unit-length for proper display.• sphere {x yz} [radius r] [resolutionn]:Draws a sphere of the given radius (default r=1) centered at the vertex. The resolution(default n=6) determines how many polygons are used in the approximation of a sphere.• text {x yz} “text string” [sizes]:Displays the text string with the bottom left of the string starting at the given vertex.• color colorId• color name• color trans name: Each of the above geometrical objects are drawn using the current color.Initially, that color is blue, which has the colorid of 0. The color command changes thecurrent color, and stays info effect until the next color command. Thus, to draw a redcylinder then a red sphere, first use the command color red command to change the color,then use the cylinder and sphere commands.• materials : Material properties are used to make the graphical objects (lines,cylinders, etc.) be affected by the light sources. These make the objects look more realistic,but are slower on machines which don’t implement materials in hardware (see chapter 5.2and sections on color [§ 8.3.4] and colorinfo [§ 8.3.5] commands for the information on how99

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!