Full-colour 3D printing of molecular models and orbitals (wavefunctions).

We have been experimenting with full-colour 3D printing of molecular objects. I thought I might here share some of our observations. Firstly, I list the software used:

  1. Crystal structures as sources of ball&stick models (e.g. the CCDC database).
  2. Gaussian style cube files for sources of wavefunctions.
  3. There are plenty of other sources of course, in fact any file type which is supported by ..
  4. Jmol 13.3 (the app, not the applet) to render the above.
  5. And www.shapeways.com who provide the full colour 3D printing service.

My first attempt was to 3D print a molecular orbital; in fact the one shown in this post. To be printable, a 3D object must be fully connected, in other words not contain any disconnected components. To ensure this is true for a molecular orbital, one has to select a very low isosurface threshold; 0.005 au in this case. The orbital is computed as a Gaussian cube, and converted to a .wrl file as follows

  1. Start the Jmol.app.
  2. In the console, enter e.g. 
    isosurface sign color yellow green cutoff 0.005 "144.cub"
    (where 144.cub is the Gaussian cube file). Then
  3. write model.wrl
    to write out a VRML (.wrl) file. 
  4. Create an account at Shapeways, go to “make your own” and upload the .wrl file. After about five minutes, it should appear under “my models“, looking something like below:
  5. Select “full color sandstone” as the material and see what the quoted price is. For the above it was €3.25. It is actually quite tricky to anticipate what physical size this represents, but upon printing and receiving it by post, it turned out to be about 2 cm in size! I should point out that it takes a day or so for  Shapeways to confirm that the model has been sent to manufacturing (it is perfectly possible that it may be rejected at this stage because it cannot be manufactured for whatever reason).
  6. The thing now is to get the model to scale. To do this, a scale-factor has to be applied to the VRML file, which is easier said than done. Fortunately (thanks Bob Hanson!) this can be applied at the Jmol stage, and after step 2 above in the Jmol console, apply the command:
    set exportScale 8.0
    to scale up by 8-fold, before writing out the .wrl file. You know it has worked when the size is given as cm: 13.228 w x 13.288 d x 2.786 h and the price goes up to €69. I will assume (I have not printed at this scale yet) that it is less than 13 cm across, but something big enough to hand around a group of people. I should mention that we tried a variety of ways of scaling the model using programs such as Blender, but they all proved unreliable. You can of course also set the colours in the command above.
  7. It is possible to set the scale larger than 8, but say at 10-fold the materials available to you reduce significantly. Full-colour sandstone is no longer available, and you can only print in a single colour (the materials by the way include stainless steel, for €5700.71). 
  8. The resulting model is made from gypsum with a polymer binder. I have not had the courage yet to test how robust it is by breaking one of the models; I suspect it might be fairly fragile. Time will tell.
  9. I also tried a ball&stick. The molecule selected has been described in another post and is saved by converting the .cif file to .pdb (using in my case the program Mercury). This helps normalise the bond types, producing:
  10. In this case, converting the crystal coordinates via Jmol to .wrl required a scaling factor of 10.0 in this instance to produce a model costed as €24.53. It is very much a matter of adjusting the exportscale against the resulting printing price to get the desired result (by trial and error, but perhaps there is a more systematic way of doing this?). One of my colleagues (Paul) has had this sort of thing printed to about 25cm in size for about this price, and the model seems reasonably robust to physical handling. It may also benefit by fine-tuning of the bond radius; thicker would clearly be stronger.

If anyone reading this post has their own experience of 3D colour printing of chemical models, do please post comments here. And I dare say that in a few years time, students will simply press the “3D print” button on the tablet they are using to view lecture notes to get a copy. Mind you, I am somewhat ambivalent about such a process, having spent the last twenty years trying to discourage students from using the “2D print” button on their computer. Will I eventually come to adopt the same attitude to 3D print (if you click on the MO image above, you will get a virtual 3D model instead of a physical one). 


The width of a bond can be set using the Jmol command: set bondRadiusMilliAngstroms 300


Acknowledgments

This post has been cross-posted in PDF format at Authorea.

Henry Rzepa

Henry Rzepa is Emeritus Professor of Computational Chemistry at Imperial College London.

View Comments

  • Lee Cronin has reported 3D-printed reactionware with printed-in catalysts.

    Here's a fun idea: Catalyst printed into a model of the catalyst.

    Just pluck the model of the catalyst you want to use out from the display cabinet and dunk into the reaction. When your done, simply pluck the model out of the reaction mixture, give it a rinse and a little shake, and place back in the display cabinet.

  • By the way, Shapeways accept the more modern X3D file format, which can also be written by Jmol.

    > write X3D "fileName"

  • Re: X3D, yes they accept a variety of formats. But I can see no obvious benefit of using X3D vs WRL; they seem entirely equivalent (and so they should, X3D is simply an XML serialisation of WRL).

    Do you have a doi for Cronin's work?

    The idea of a library (cabinet) is good. We actually have such a cabinet in the entrance to our chemistry dept. It contains 3D models of molecules, but embedded in lead crystal glass (and in monochrome). No doubt some of the models I have printed will find their way in!

  • Six π-MOs from benzene: http://shpws.me/oYY1 http://shpws.me/oYY6 http://shpws.me/oYYa (occupied) http://shpws.me/oYYh http://shpws.me/oYYk http://shpws.me/oYYp (unoccupied) and four from cis-butadiene: http://shpws.me/oYZa http://shpws.me/oYZd (HOMO), http://shpws.me/oYZn (LUMO), http://shpws.me/oYZp were generated following the procedure outlined above (the costs relate purely to manufacturing, with no percentage given to the designer!). They will be used in my undergraduate lectures (time will tell whether they are robust enough for an enthusiastic student audience).

  • Henry,
    Do you think it is feasible to use MRI, CAT and X-ray to create accurate 3-D models of hip joints (or indeed any other joint) and using carbonated compounds or structurally comparable biomaterials recreate via 3D-printing? Would ceramic derivatives be compatible with the molecular 3D printing process and would the chemical bonds created be sufficiently strong to manage body weight and the full range of movement (wear and tear etc). Many thanks.

  • I can only answer the previous question by saying the learning curve is actually both steep and extensive. We have looked at a variety of different machines used to 3D print in a variety of materials. Modern printers nowadays can manufacture in several materials, either consecutively (depositing one on the other) or at the same time. They can even blend a continuously varying mixture of polymers.

    I cannot answer your questions, but I do strongly suspect that this area (like other technologies such as eg mobile phones) is going to advance very rapidly indeed over the next decade.

  • Can you lay out color setting commands in the Console. I think we can try making a model in Chem3D from Chemdraw and save the file into .PDB file which can be opened and saved as .wrl in JMol. What i can't do is to render colors for each atom/atom types. Help would be appreciated.
    Thanks
    Mahender

Recent Posts

Detecting anomeric effects in tetrahedral boron bearing four oxygen substituents.

In an earlier post, I discussed a phenomenon known as the "anomeric effect" exhibited by…

1 week ago

Internet Archeology: reviving a 2001 article published in the Internet Journal of Chemistry.

In the mid to late 1990s as the Web developed, it was becoming more obvious…

2 months ago

Detecting anomeric effects in tetrahedral carbon bearing four oxygen substituents.

I have written a few times about the so-called "anomeric effect", which relates to stereoelectronic…

2 months ago

Data Citation – a snapshot of the chemical landscape.

The recent release of the DataCite Data Citation corpus, which has the stated aim of…

2 months ago

Mechanistic templates computed for the Grubbs alkene-metathesis reaction.

Following on from my template exploration of the Wilkinson hydrogenation catalyst, I now repeat this…

3 months ago

3D Molecular model visualisation: 3 Million atoms +

In the late 1980s, as I recollected here the equipment needed for real time molecular…

3 months ago