home *** CD-ROM | disk | FTP | other *** search
/ RISC DISC 3 / RISC_DISC_3.iso / resources / etexts / gems / gemsv / ch3_6 / axd.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-04-25  |  1.6 KB  |  41 lines

  1. /* ------------------------------------------------------------------------- *\
  2.    AXD.H :
  3.  
  4.    This package provides an implementation of 6 different algorithms
  5.    for doing procedural axial deformations.
  6.  
  7.    by Carole Blanc (4 June 1994)
  8.  
  9.    "A Generic Implementation of Axial Deformation Techniques"
  10.    in Graphics Gems V (edited by A. Paeth), Academic Press
  11. \* ------------------------------------------------------------------------- */
  12.  
  13. #ifndef _AXD_
  14. #define _AXD_
  15.  
  16. /*
  17. ** This package uses the "Toolbox of Macros Functions for Computer Graphics"
  18. ** which provides files : tool.h, real.h, uint.h, sint.h, vec?.h and mat?.h
  19. */
  20.  
  21. #include "../ch7-7/mactbox/real.h"
  22.  
  23. typedef real (*shape) (real);
  24.  
  25. extern void local_pinch (rv3 *Point, shape Shape, real Ampli);
  26. extern void world_pinch (rv3 *Point, frame3 Frame, shape Shape, real Ampli);
  27. extern void local_taper (rv3 *Point, shape Shape, real Ampli);
  28. extern void world_taper (rv3 *Point, frame3 Frame, shape Shape, real Ampli);
  29. extern void local_mould (rv3 *Point, shape Shape, real Ampli);
  30. extern void world_mould (rv3 *Point, frame3 Frame, shape Shape, real Ampli);
  31. extern void local_twist (rv3 *Point, shape Shape, real Ampli);
  32. extern void world_twist (rv3 *Point, frame3 Frame, shape Shape, real Ampli);
  33. extern void local_shear (rv3 *Point, shape Shape, real Ampli);
  34. extern void world_shear (rv3 *Point, frame3 Frame, shape Shape, real Ampli);
  35. extern void local_bend  (rv3 *Point, shape Shape, real Ampli);
  36. extern void world_bend  (rv3 *Point, frame3 Frame, shape Shape, real Ampli);
  37.  
  38. #endif
  39.  
  40. /* ------------------------------------------------------------------------- */
  41.