home *** CD-ROM | disk | FTP | other *** search
/ Gold Fish 3 / goldfish_volume_3.bin / files / gfx / 3d / irit / scripts / closloop.irt < prev    next >
Encoding:
Text File  |  1993-12-30  |  423 b   |  26 lines

  1. #
  2. # Routines to test the boolean operations among geometric objects:
  3. #
  4. # Intersection between a box and a cylinder - make a hole in the box
  5. #
  6. b=box(vector(-3,-2,-1),6,4,2);
  7. c=cylin(vector(0,0,-4),vector(0,0,8),1);
  8.  
  9. save_view = view_mat;
  10. view_mat = view_mat * scale(vector(0.1, 0.1, 0.1));
  11.  
  12. a1=b+c;
  13. interact(list(view_mat, a1));
  14.  
  15. a2=b*c;
  16. interact(a2);
  17.  
  18. a3=b-c;
  19. interact(a3);
  20.  
  21. free(b);
  22. free(c);
  23. free(a1);
  24. free(a2);
  25. free(a3);
  26.