Hello Community
I have been trying to work on the labels feature in Avogadro2 which was
already there in Avogadro1. The code for it is available here.
<https://github.com/foowhiz/avogadrolibs/commit/8d9443d75deb1dbd5b0a1eec31b5ba93f2d71d29>
Attached
herewith is a screenshot of the labels display type.

It uses most of the code from the ball and stick rendering mode. The extra
thing that I've used here is a hash table to pair the number of atoms of
each element with its atomic number. This is used in each rendering pass to
mark each atom with a suitable number, along with the atom's symbol.

Any feedback on this is highly appreciated.

Cheers!
~Tanuj
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Avogadro-devel mailing list
Avogadro-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/avogadro-devel

Reply via email to