OK, so the way this works is this:

  draw width -1.0 {0 0 0} {0 0 0.1}

draws a solid cylinder 1 Angstrom in diameter and 0.1 Angstrom long 
along that line.

  draw width 1.0 {0 0 0} {0 0 0.1} mesh nofill

draws a ring.

You will have to figure out the two points you want for the ends of the 
cylinder.

Bob



Latévi Max LAWSON DAKU wrote:

> Dear Bob,
>
> Your addition is very nice: I've played with. funny.
> Unfortunately, I am interested in ... 3D circle :-P
>
> I'll try to use a(n awfull) hack to do this (with polygons)..
>
> While playing with 11.5.25, I've noticed a bug which is probably
> due to the introduction of the capability to draw circles. The bug
> can be reproduced with the attached file by issuing the commands
>
>     load test.xyz
>     draw (atomno=1) (atomno=2) (atomno=3)
>
> You will notice that an unwanted circle is drawn around the first
> atom.
>
>
> All the very best,
> MAx
>
>
> Bob Hanson wrote:
>
>>Jmol 11.5.25 draws circles.
>>
>>See http://chemapps.stolaf.edu/jmol/docs/examples-11/new.htm
>>
>>and
>>
>>http://chemapps.stolaf.edu/jmol/docs/examples-11/Jmol-11_5.zip
>>
>>I think this is a very nice addition. Max, I hope you were thinking of 
>>circles the way I was -- not 3D, but 2D -- and that this will be useful 
>>to you. 3D would be considerably harder.
>>
>>Bob
>>
>>
>>Latévi Max LAWSON DAKU wrote:
>>
>>  
>>
>>>Many thanks, Bob, for implementing this feature.
>>>I will download the new Jmol version and play with,
>>>as soon as possible :-)
>>>
>>>All the best,
>>>Max
>>>
>>>Bob Hanson wrote:
>>>
>>>    
>>>
>>>>version=11.5.25_dev
>>>>
>>>># new feature draw circle:
>>>>#
>>>>#   A circle is a 2D object that behaves like a halo, always appearing 
>>>>circular
>>>>#
>>>>#   draw circle {molecule=1}            # around specified atoms
>>>>#   draw diameter 2.0 circle {atomno=3} # 2.0 angstroms; scales
>>>>#   draw width 100 circle {_O}[1]       # 100 pixels (doesn't scale)
>>>>#   draw circle plane {*}   # a solid plane in the shape of a circle; 
>>>>can be translucent
>>>>
>>>>
>>>>Latévi Max LAWSON DAKU wrote:
>>>>
>>>> 
>>>>
>>>>      
>>>>
>>>>>Bob Hanson wrote:
>>>>>
>>>>>   
>>>>>
>>>>>        
>>>>>
>>>>>>Latévi Max LAWSON DAKU wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>     
>>>>>>
>>>>>>          
>>>>>>
>>>>>>>Hello,
>>>>>>>
>>>>>>>Is there a (simple) way to draw a circle using Jmol ? 
>>>>>>>I guess there is one but cannot find it (googling or
>>>>>>>searching the mails I received don't help).
>>>>>>>
>>>>>>>
>>>>>>>Thanks in advance for telling me how to proceed.
>>>>>>>
>>>>>>>All the best,
>>>>>>>Max
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>  
>>>>>>>
>>>>>>>       
>>>>>>>
>>>>>>>            
>>>>>>>
>>>>>>no, there is not.
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>     
>>>>>>
>>>>>>          
>>>>>>
>>>>>Many thanks, Bob, for your answer.
>>>>>
>>>>>Could you, please, consider enabling the drawing an arc of a circle or 
>>>>>a circle,
>>>>>by issuing a command like
>>>>>
>>>>>       1) circle [object_id] \
>>>>>             CENTER <{x y z} || (atom_expr)> \
>>>>>             PLANE   <a_plane_id || (atom_expr)> \
>>>>>             RADIUS  <the_radius> \
>>>>>             [ANGLE <default=360>] \
>>>>>             COLOR <color> \
>>>>>             [FILLED || NOFILLED]
>>>>>
>>>>>or
>>>>>
>>>>>      2) circle [object_id] \
>>>>>             CENTER <{x y z} || (atom_expr)> \
>>>>>             NORMAL   <{u v w}> \
>>>>>             RADIUS  <the_radius> \
>>>>>             [ANGLE <default=360>] \
>>>>>             COLOR <color> \
>>>>>             [FILLED || NOFILLED]
>>>>>
>>>>>In the first case, one gives the plane in which the circle must be drawn;
>>>>>in the second case, one rather gives the normal to this plane.
>>>>>
>>>>>I don't know how demanding the implementation of this feature will
>>>>>be ... but I am quite sure this may be useful for representing and/or
>>>>>following in schemes structural data, such as angles or distances, as
>>>>>in the case I am interested in.
>>>>>
>>>>>Thanks in advance for considering my request.
>>>>>
>>>>>Regards,
>>>>>Max
>>>>>
>>>>>
>>>>>-- 
>>>>>***********************************************
>>>>>Latevi Max LAWSON DAKU
>>>>>Departement de chimie physique 
>>>>>Universite de Geneve - Sciences II
>>>>>30, quai Ernest-Ansermet  
>>>>>CH-1211 Geneve 4 
>>>>>Switzerland 
>>>>>
>>>>>Tel: (41) 22/379 6548 ++ Fax: (41) 22/379 6103
>>>>>***********************************************
>>>>>
>>>>>
>>>>>------------------------------------------------------------------------
>>>>>
>>>>>-------------------------------------------------------------------------
>>>>>Check out the new SourceForge.net Marketplace.
>>>>>It's the best place to buy or sell services for
>>>>>just about anything Open Source.
>>>>>http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
>>>>>
>>>>>------------------------------------------------------------------------
>>>>>
>>>>>_______________________________________________
>>>>>Jmol-users mailing list
>>>>>[email protected]
>>>>>https://lists.sourceforge.net/lists/listinfo/jmol-users
>>>>>
>>>>>
>>>>>   
>>>>>
>>>>>        
>>>>>
>>>> 
>>>>
>>>>      
>>>>
>>>-- 
>>>***********************************************
>>>Latevi Max LAWSON DAKU
>>>Departement de chimie physique 
>>>Universite de Geneve - Sciences II
>>>30, quai Ernest-Ansermet  
>>>CH-1211 Geneve 4 
>>>Switzerland 
>>>
>>>Tel: (41) 22/379 6548 ++ Fax: (41) 22/379 6103
>>>***********************************************
>>> 
>>>
>>>------------------------------------------------------------------------
>>>
>>>-------------------------------------------------------------------------
>>>Check out the new SourceForge.net Marketplace.
>>>It's the best place to buy or sell services for
>>>just about anything Open Source.
>>>http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
>>>
>>>------------------------------------------------------------------------
>>>
>>>_______________________________________________
>>>Jmol-users mailing list
>>>[email protected]
>>>https://lists.sourceforge.net/lists/listinfo/jmol-users
>>> 
>>>
>>>    
>>>
>>
>>
>>  
>>
>
>-- 
>***********************************************
>Latevi Max LAWSON DAKU
>Departement de chimie physique 
>Universite de Geneve - Sciences II
>30, quai Ernest-Ansermet  
>CH-1211 Geneve 4 
>Switzerland 
>
>Tel: (41) 22/379 6548 ++ Fax: (41) 22/379 6103
>***********************************************
>  
>
>------------------------------------------------------------------------
>
>-------------------------------------------------------------------------
>Check out the new SourceForge.net Marketplace.
>It's the best place to buy or sell services for
>just about anything Open Source.
>http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Jmol-users mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/jmol-users
>  
>


-- 
Robert M. Hanson
Professor of Chemistry
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr


If nature does not answer first what we want,
it is better to take what answer we get. 

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900



-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to