   How to wrap texture around VRML extrusion?
  I'm trying to write a VRML file renderer using OpenGL but I have a problem with applying textures to extrusions.VRML specifies extrusions by a set of points defining a cross section area, and a set of points that define the extrusion spline path.I have an algorithm that calculates all the point's that define the extruded shape, but I don't know how to calculate the texture coordinates for all these points.Yesterday I came up with something that works for the top and buttom caps but I am stuck on the sides.  Can anyone help?   