This is something I've been interested in doing as well. Here's my first
draft:

function drawHkl(h,k,l, params) {
    draw phkl* delete
    Var n = [h, k, l, -h, -k, -l].max
    n *= n * 2
    Var s= ""
    Var colors = ["red", "orange", "yellow", "green", "blue"]
    for (var  i = 1; i <= n;i++){
        s += "\ndraw phkl" + i + " intersection unitcell plane " +
hkl(1.0*h/i, 1.0*k/i, 1.0*l/i) + " color " + colors[i % colors.length + 1] +
" " +  params
    }
    script inline @s
}

//load quartz.cif {1 1 1}

drawHkl 1 2 3

or

drawHkl 2 2 2 "mesh nofill"

for example.

Bob


On Sat, Feb 19, 2011 at 2:41 AM, Stephen Hillier
<s.hill...@macaulay.ac.uk>wrote:

>  Dear All,
>
> I have learned how to display a in plane in JMOL based on millier indices
> eg 111, but I am unsure about how I would go further and display a whole set
> of similar planes.  I expect it need some kind of loop with the plane
> coordinates as a variable?
>
> If someone could point me in the right direction here it would be much
> appreciated,
>
> thanks,
>
> steve
>
>
>
>
> --
> Please note that the views expressed in this e-mail are those of the
> sender and do not necessarily represent the views of the Macaulay
> Institute. This email and any attachments are confidential and are
> intended solely for the use of the recipient(s) to whom they are
> addressed. If you are not the intended recipient, you should not read,
> copy, disclose or rely on any information contained in this e-mail, and
> we would ask you to contact the sender immediately and delete the email
> from your system. Thank you.
> The Macaulay Land Use Research Institute is a company limited by guarantee,
>
> registered in Scotland under company number 16190 and a registered Scottish
>
> charity, number SC011922. Registered office
> Macaulay Drive, Craigiebuckler, Aberdeen, AB15 8QH.
>
>
> ------------------------------------------------------------------------------
> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
> Pinpoint memory and threading errors before they happen.
> Find and fix more than 250 security defects in the development cycle.
> Locate bottlenecks in serial and parallel code that limit performance.
> http://p.sf.net/sfu/intel-dev2devfeb
> _______________________________________________
> Jmol-users mailing list
> Jmol-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
>


-- 
Robert M. Hanson
Professor of Chemistry
St. Olaf College
1520 St. Olaf Ave.
Northfield, MN 55057
http://www.stolaf.edu/people/hansonr
phone: 507-786-3107


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
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to