3dmol / 3Dmol.js

WebGL accelerated JavaScript molecular graphics library
https://3dmol.org/
Other
794 stars 194 forks source link

tube-like representation of protein structure #293

Open eguarnera opened 7 years ago

eguarnera commented 7 years ago

Hi there,

Would it be possible to add an additional type of representation for protein structure beside cartoon, stick and lines? A tube-like representation would be useful for me, attached an example from the cartoon putty representation in pymol that would be nice to have in 3Dmol/py3Dmol.

Thanks for feedback and the great work you have done.

Best, Enrico

cartoon-putty

dkoes commented 7 years ago

We can do this now by adjusting the cartoon style: http://3dmol.csb.pitt.edu/viewer.html?pdb=1ycr&style=cartoon:thickness~1,ribbon~true,style~oval,color~spectrum,outline~true

However, the result isn't as smooth as pymol - the tube kinks in places.

I'll leave this open to remind us to work out the kinks...

eguarnera commented 7 years ago

Thanks.