To draw Optic fiber?

i have to model the operation of an optic fiber…
can anyone help me???
something like the 3rd pic in the below link…
http://www.eas.asu.edu/~palais/demos/grin.htm

Sounds like you have no idea about OpenGL or you would have had many ideas on how to accomplish this. Read some more about the API and please don’t ask people to do your homework. If you have an OpenGL specific question, ask freely.

i just wanted some help,how to go about it…