Ribbon
Exercise


Description


VRML Concepts

Files

Tasks


  1. Make a copy of the "ribbon.c" program:

    The initial ribbon shows a helical path of a particle. To indicate the orientation of the particle along the path, you can add a twist to the path. Your task is to modify the ribbon1.c program to twist the ribbon by rotating the cross-section at each spine point.

    Recompile and run the new ribbon1 program, and view the resulting VRML scene (call it ribbon1.wrl).

    SOLUTION: ribbon1.c, ribbon1.wrl


  2. Make a copy of the "ribbon1.c" program:

    Extra credit: The ribbon in the previous task now shows a particle path and orientation, but not which direction the particle is traveling along the path. Your task is to modify the ribbon2.c program to add an arrow head at the end of the ribbon.

    SOLUTION: ribbon2.c, ribbon2.wrl