[osg-users] Best way to draw a tube

Paul Martz pmartz at skew-matrix.com
Mon Nov 30 12:31:43 PST 2009

François Bodic wrote:
> Actually I have two cylinder volumes (sorry for my mistake) but I want the inner to be a hole so as to have a tube. Is there just a commande to do that?

Well there is the well-known CSG stencil trick, as mentioned in the red 
book, and also employed in OSG's stencil shadow algorithm, but this 
seems like overkill for such a simple problem as taking the vertices 
from an inner tube wall and stitching them into a triangle strip with 
the vertices from an outer tube wall...

More information about the osg-users mailing list