gabrielelanaro / chemview

The new generation molecular viewer for IPython notebook
GNU Lesser General Public License v2.1
81 stars 17 forks source link

Add cylinder and strand representation #3

Closed gabrielelanaro closed 9 years ago

gabrielelanaro commented 9 years ago

We need to first subdivide each strand using splines:

https://github.com/HongjianLi/iview/blob/master/public/iview/iview.js#L759

then we draw strips between set of points https://github.com/HongjianLi/iview/blob/master/public/iview/iview.js#L813

what about another kind of spline? http://threejs.org/examples/#canvas_geometry_nurbs

also the function extrude in three js may be really useful