PittQuantumRepository icon indicating copy to clipboard operation
PittQuantumRepository copied to clipboard

Add "Ball and Stick" Render option

Open ghutchis opened this issue 9 years ago • 4 comments

The new default rendering style should be with balls and sticks:

http://3dmol.csb.pitt.edu/viewer.html?url=http://3dmol.csb.pitt.edu/tests/test_structs/benzene.sdf&type=sdf&style=stick:radius~0.15;sphere:radius~0.4

or..

http://3dmol.csb.pitt.edu/viewer.html?url=https://pqr.pitt.edu/static/data/mol2/WQ/WQLVFSAGQJTQCK-VKROHFNGSA-N.mol2&style=stick:radius~0.1;sphere:radius~0.35&surface=opacity:0.7;colorScheme:whiteCarbon

ghutchis avatar Feb 11 '16 02:02 ghutchis

Saving this for later, because this makes everything ball and stick

pqr.threeDMole.all_viewers[0].setStyle({}, {sphere: {radius: 0.4}, stick: {radius: 0.15}});

RitwikGupta avatar Feb 11 '16 10:02 RitwikGupta

See ad07351 for this WIP. @vonbearshark

RitwikGupta avatar Feb 11 '16 10:02 RitwikGupta

capture3

RitwikGupta avatar Feb 11 '16 10:02 RitwikGupta

I've changed my mind - I think the current look is different enough that people like it, so let's just add this as another option (i.e., not just sticks and spheres).

ghutchis avatar Feb 18 '16 00:02 ghutchis