nglviewer / ngl

WebGL protein viewer
http://nglviewer.org/ngl/
MIT License
657 stars 168 forks source link

Cylinder with top and bottom radius #952

Closed britesma closed 1 year ago

britesma commented 1 year ago
image

Normally in three.js you can get this shape by using a cylinderGeometry and passing different top and bottom radius.

How would I achieve a similar shape with ngl?

My goal is to build a shape similar to a funnel, therefore I thought to use a shape similar to the image above along with a cylinder shape.

fredludlow commented 1 year ago

Unfortunately not, it goes via the code in geometry/primitive and only supports a fixed radius.