# Unit cell PovRay

**URL:** <https://discuss.avogadro.cc/t/unit-cell-povray/3541>\
**Category:** General Discussion\
**Created:** [June 23, 2021, 12:18pm UTC](https://discuss.avogadro.cc/t/unit-cell-povray/3541 "2021-06-23T12:18:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bojana](https://discuss.avogadro.cc/letter_avatar_proxy/v4/letter/b/6bbea6/32.png) [@bojana](https://discuss.avogadro.cc/u/bojana)\
**Post date:** [June 23, 2021, 12:18pm UTC](https://discuss.avogadro.cc/t/unit-cell-povray/3541/1 "2021-06-23T12:18:25Z")

</div>

I am trying to export crystal structure with unit cell from Avogadro 1.2 to PovRay format. The problem is that unit cell is missing after rendering. Any suggestions?

Thanks,  
Bojana

---

<div class="post-metadata">

**Author:** ![ghutchis](https://discuss.avogadro.cc/user_avatar/discuss.avogadro.cc/ghutchis/32/456_2.png) [@ghutchis](https://discuss.avogadro.cc/u/ghutchis)\
**Post date:** [June 23, 2021, 2:24pm UTC](https://discuss.avogadro.cc/t/unit-cell-povray/3541/2 "2021-06-23T14:24:37Z")

</div>

Yeah, unfortunately, the PovRay export doesn’t include “lines” which unfortunately includes the unit cell boundaries. (Probably the best way would be to export them as very small cylinders.)

---

<div class="post-metadata">

**Author:** ![bojana](https://discuss.avogadro.cc/letter_avatar_proxy/v4/letter/b/6bbea6/32.png) [@bojana](https://discuss.avogadro.cc/u/bojana)\
**Post date:** [June 23, 2021, 2:40pm UTC](https://discuss.avogadro.cc/t/unit-cell-povray/3541/3 "2021-06-23T14:40:42Z")

</div>

Thank you for the quick answer.

Regards  
Bojana

---

<div class="post-metadata">

**Author:** ![Thomas](https://discuss.avogadro.cc/user_avatar/discuss.avogadro.cc/thomas/32/3403_2.png) [@Thomas](https://discuss.avogadro.cc/u/Thomas)\
**Post date:** [June 25, 2021, 12:10pm UTC](https://discuss.avogadro.cc/t/unit-cell-povray/3541/4 "2021-06-25T12:10:24Z")

</div>

Dear Bojana,

from multiple alternatives _outside_ Avogadro to accomplish this task let me present just two which are cross-platform:

- light weight for disk space used, fine control over processing and output (e.g., it may require / offer some scripting): [Jmol](http://jmol.sourceforge.net/), a program both open source and freely available.

- significant disk space used (ca 1.6 GB), preset defaults, but less hassle to enter details: [CCDC Mercury](https://www.ccdc.cam.ac.uk/solutions/csd-core/components/mercury/), either the free community edition, or any above. The installation is this large because the program already includes all bells and whistles the corporate edition eventually enables (possibly your school / scientific library has a subscription to the CSD database which includes Mercury, too.).

In detail:

- Start Jmol, e.g., in Linux from the CLI by `jmol 1505213.cif` to load the file of interest. Open Jmol’s own script console, and load the file a twice by

- Mercury possesses a dedicated tool bar “display options” to toggle on/off e.g., the display of the unit cell, short contacts, networks of hydrogen bonds, or the packing within a unit cell when visualizing a model. Once set either choose a) File → Save as to write .pov, .pov.ini, and ccdc\_macro\_overrides.inc, and eventually run e.g., `povray 1505213.pov` to obtain `1505213.png` for a _quick_ test.

* * *

File `1505213.cif` used in these examples is an entry of the public [COD](https://www.crystallography.net/cod/index.php).
