Skip to content

alejandrogallo/asy-atoms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

/// \mainpage

Build Status

ASY-ATOMS

This package is a tool in order to render molecular structures in using the Asymptote program.

Installation

Take the files in the dist director and copy them in your project directory or if you want to install it system-wide just copy the files into

Linux

/usr/share/asymptote/

Windows

TODO

Quick start

import atoms;
unitsize(1cm);
currentprojection = perspective(1,1,1);
settings.prc       = false;
settings.render    = 10; //quality
settings.outformat = "png"; //output 

real bond_radius = 3.0;
real radius_scale = 0.2;

Atom h_1 = Atom("H", (-1,0,0));
Atom h_2 = Atom("H", (1,0,0));

h_1.color = red;
h_2.color = blue;

h_1.draw(true);
h_2.draw(true);

Bond(h_1,h_2).draw(radius=bond_radius);

And now you could do

asy h2.asy or if you want interactive asy -batchView h2.asy

H2

Citation

If you find this project useful and want to cite it, consider adding this bibtex entry to your citations.

@misc{asyatoms,
  author = {Alejandro Gallo},
  title = {An asymptote package for rendering atomic structures},
  year = {2016},
  publisher = {GitHub},
  journal = {GitHub repository},
  howpublished = {\url{https://github.com/alejandrogallo/asy-atoms}},
}

Whish list

  • Volumetric data!!!!!!!

Example

SiV defect in diamond

About

An asymptote package for plotting 3D atomic structures

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages