VMD-L Mailing List
From: Axel Kohlmeyer (akohlmey_at_cmm.chem.upenn.edu)
Date: Fri Nov 17 2006 - 11:02:42 CST
- Next message: John Stone: "Re: Change properties of representations - batch mode"
- Previous message: Axel Kohlmeyer: "Re: Change properties of representations - batch mode"
- In reply to: L. Michel Espinoza-Fonseca: "changing the representation of a vector"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
On Fri, 17 Nov 2006, L. Michel Espinoza-Fonseca wrote:
MEF> Hi guys,
MEF>
MEF> I'm trying to display a vector as an arrow, but my best approximation
MEF> right now has been a cone. I'm using the following to visualize such
MEF> vector:
please have a closer look at the manual. the best way to draw
an arrow is to combine a cone and a cylinder.
i suggest, however, you try the version in
https://biocore-s.ks.uiuc.edu/biocore/biofs/VMD%20(Public)/src/rpm/vmd_draw_lib.tcl
as it tries to follow the style of vmd as close as possible.
this script takes advantage of the extensability of the vmd
draw command (which falls back to using graphics on the top molecule).
MEF>
MEF> graphics top cone {-18.631001 2.933000 0.252000} {-18.088463 -0.328044
MEF> -20.981705} radius 0.400000 resolution 20
MEF>
MEF> I would like to know if any of you know how to change such
MEF> visualization for an arrow. All comments will be greatly appreciated.
if you stop the graphics ids as returned from the graphics
command (or aforementioned draw commmands), you can replace
or delete those objects any way you want.
cheers,
axel.
MEF>
MEF> Thanks!
MEF> Michel
MEF>
-- ======================================================================= Axel Kohlmeyer akohlmey_at_cmm.chem.upenn.edu http://www.cmm.upenn.edu Center for Molecular Modeling -- University of Pennsylvania Department of Chemistry, 231 S.34th Street, Philadelphia, PA 19104-6323 tel: 1-215-898-1582, fax: 1-215-573-6233, office-tel: 1-215-898-5425 ======================================================================= If you make something idiot-proof, the universe creates a better idiot.
- Next message: John Stone: "Re: Change properties of representations - batch mode"
- Previous message: Axel Kohlmeyer: "Re: Change properties of representations - batch mode"
- In reply to: L. Michel Espinoza-Fonseca: "changing the representation of a vector"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]