VMD-L Mailing List
From: Axel Kohlmeyer (akohlmey_at_gmail.com)
Date: Tue Jun 23 2015 - 12:12:10 CDT
- Next message: Josh Vermaas: "Re: Drawing extended arrow to show direction vector on VMD"
- Previous message: Axel Kohlmeyer: "Re: Colouring atoms according to their q4 or q6 values"
- In reply to: Bharat Sharma: "Drawing extended arrow to show direction vector on VMD"
- Next in thread: Josh Vermaas: "Re: Drawing extended arrow to show direction vector on VMD"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
On Tue, Jun 23, 2015 at 12:45 PM, Bharat Sharma
<bharatsolbridge_at_gmail.com> wrote:
> Hello Experts,
>
> I would like to draw the arrow lines on VMD display connecting two atoms. I
> follow the following.
>
> proc vmd_draw_arrow {mol start end} {
> # an arrow is made of a cylinder and a cone
> set middle [vecadd $start [vecscale 0.9 [vecsub $end $start]]]
> graphics $mol cylinder $start $middle radius 0.15
> graphics $mol cone $middle $end radius 0.25
> }
> vmd_draw_arrow 0 $pos1 $pos2
>
> I need to extend the line to show the angle between two vectors. How do I do
> that? One way to do this is finding the coordinate of end point, but how can
> I find it?
it is not quite clear what you are asking, but it is obvious that the
answer you seek could be found with some simple vector algebra.
axel.
>
> Any suggestions are appreciated.
>
> Best regards,
> Bharat Sharma
-- Dr. Axel Kohlmeyer akohlmey_at_gmail.com http://goo.gl/1wk0 College of Science & Technology, Temple University, Philadelphia PA, USA International Centre for Theoretical Physics, Trieste. Italy.
- Next message: Josh Vermaas: "Re: Drawing extended arrow to show direction vector on VMD"
- Previous message: Axel Kohlmeyer: "Re: Colouring atoms according to their q4 or q6 values"
- In reply to: Bharat Sharma: "Drawing extended arrow to show direction vector on VMD"
- Next in thread: Josh Vermaas: "Re: Drawing extended arrow to show direction vector on VMD"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]