home *** CD-ROM | disk | FTP | other *** search
/ Computerspiele Selbermachen / computerspieleselbermachen.iso / fnt / fntrnd.inc
Text File  |  1994-02-11  |  35KB  |  1,547 lines

  1. #declare Font_Round_Ver=version
  2. #version 2.0
  3.  
  4. // FNTRND.INC v2.0
  5. // 
  6. // Round fonts for use with POV-RAY v2.0
  7. //
  8. // Written by:  Howard G. Shank
  9. //              Aurum Software
  10. //              PO Box 156
  11. //              Ankeny,  IA  50021
  12. //              515/964-0317
  13. //
  14. //              CSERVE: 72724, 3066
  15. //
  16. // Copyright is retained by Howard G. Shank
  17. // with rights granted for use and distribution
  18. // both private and commercial provided this copyright
  19. // notice is distributed with this file and the author's
  20. // credit remains intact.
  21. //
  22. //
  23. // Description:
  24. //
  25. // Fully scalable and translatable fonts.
  26. // Font is positioned with the lower left corner being <-1, -1, -1> 
  27. // and the upper right corner being <8, 15, 1>
  28. // All letters have a radius of 1.  By scaling the object, these points
  29. // are modified accordingly.
  30. //
  31. // USAGE:
  32. //      Object {
  33. //              Font_Round_A
  34. //              pigment { color Red }                   // or whatever
  35. //              translate <0, 0, 0>                     // 0,0,0 does not move from original position
  36. //                                                      // and whatever other options you intend to use.
  37. //      } // end of Object block
  38. //
  39.  
  40.  
  41. // Begin upper case round font letters
  42.  
  43. //      Capital A
  44. #declare Font_Round_A = union {
  45.     cylinder { <0,0,0>, <0,10.5,0>, 1      // left side
  46.     }
  47.  
  48.     cylinder { <7,0,0>, <7,10.5,0>, 1      // left side
  49.     }
  50.  
  51.     torus { 3.5, 1 sturm              // top arch
  52.         rotate < 90, 0, 0>
  53.         translate < 3.5, 10.5, 0>
  54.         clipped_by {
  55.             box { <-1, 10.5, -1>, <8, 15, 1> } 
  56.         }
  57.     }
  58.  
  59.     sphere { <0, 0, 0>, 1 }             // left foot
  60.     sphere { <7, 0, 0>, 1 }             // right foot
  61.     cylinder { <0,7.5,0>, <7,7.5,0>, 1 }            // cross beam
  62.   
  63. }   // end union `A
  64.  
  65. //      Capital B
  66. #declare Font_Round_B = union {
  67.  
  68.     sphere {                        // B/L corner
  69.         <0, 0, 0>, 1
  70.     }
  71.  
  72.     sphere {                        // T/L corner
  73.         <0, 14, 0>, 1
  74.     }
  75.     
  76.     torus { 3.5, 1 sturm              // top arch
  77.         rotate < 90, 0, 0>
  78.         translate < 3.5, 10.5, 0>
  79.         clipped_by {
  80.             box { <3.5, 7, -1>, <10, 15, 1> }
  81.         }
  82.     }   // end torus
  83.  
  84.     torus { 3.5, 1 sturm              // bottom arch
  85.         rotate < 90, 0, 0>
  86.         translate < 3.5, 3.5, 0>
  87.         clipped_by {
  88.             box { <3.5, -1, -1>, <10, 8, 1> }
  89.         }
  90.     }   // end torus
  91.  
  92.     cylinder { <0,0,0>, <0,14,0>, 1  // B/L to T/L side
  93.     }
  94.  
  95.     cylinder { <0,14,0>, <4,14,0>, 1  // Top beam
  96.     }
  97.  
  98.     cylinder { <0,7,0>, <4,7,0>, 1  // Middle beam
  99.     }
  100.  
  101.     cylinder { <0,0,0>, <4,0,0>, 1  // Bottom beam
  102.     }
  103. }   // end union `B
  104.  
  105.  
  106. //      Capital C
  107. #declare Font_Round_C = union {
  108.     sphere { <7,3.5,0> 1
  109.     }   // end sphere
  110.     
  111.     sphere { <7,10.5,0> 1
  112.     }   // end sphere
  113.  
  114.     cylinder { <0,3.5,0>, <0,10.5,0>, 1
  115.     }
  116.  
  117.     torus { 3.5, 1 sturm              // top arch
  118.         rotate < 90, 0, 0>
  119.         translate < 3.5, 10.5, 0>
  120.         clipped_by {
  121.             box { <-1, 10.5, -1>, <8, 15, 1> } 
  122.         }
  123.     }
  124.  
  125.     torus { 3.5, 1 sturm              // bottom arch
  126.         rotate < 90, 0, 0>
  127.         translate < 3.5, 3.5, 0>
  128.         clipped_by {
  129.             box { <-1, -1, -1>, <8, 4, 1> }
  130.         }
  131.     }   // end torus
  132.  
  133. }   // end union `C
  134.  
  135.  
  136. //      Capital D
  137. #declare Font_Round_D = union {
  138.     sphere { <0,0,0> 1          // B/L
  139.     }   // end sphere
  140.     
  141.     sphere { <0,14,0> 1         // T/R
  142.     }   // end sphere
  143.  
  144.     cylinder { <0,0,0>, <0,14,0>, 1     // left side
  145.     }
  146.  
  147.     cylinder { <7,3.5,0>, <7,10.5,0>, 1      // right side
  148.     }
  149.  
  150.     cylinder { <0, 14, 0>, <3.5, 14, 0>, 1      // top side
  151.     }
  152.  
  153.     cylinder { <0,0,0>, <3.5, 0, 0>, 1      // bottom side
  154.     }
  155.  
  156.     torus { 3.5, 1 sturm              // top arch
  157.         rotate < 90, 0, 0>
  158.         translate < 3.5, 10.5, 0>
  159.         clipped_by {
  160.             box { <3.5, 10.5, -1>, <8, 15, 1> } 
  161.         }
  162.     }
  163.  
  164.     torus { 3.5, 1 sturm              // bottom arch
  165.         rotate < 90, 0, 0>
  166.         translate < 3.5, 3.5, 0>
  167.         clipped_by {
  168.             box { <3.5, -1, -1>, <8, 3.5, 1> }
  169.         }
  170.     }   // end torus
  171.  
  172. }   // end union `D
  173.  
  174.  
  175.  
  176. #declare Font_Round_E = union {
  177.     sphere { <0,0,0> 1          // B/L
  178.     }   // end sphere
  179.     
  180.     sphere { <0,14,0> 1         // T/L
  181.     }   // end sphere
  182.  
  183.     sphere { <7,14,0> 1         // T/R
  184.     }   // end sphere
  185.  
  186.     sphere { <7,7,0> 1         // M/R
  187.     }   // end sphere
  188.  
  189.     sphere { <7,0,0> 1         // B/R
  190.     }   // end sphere
  191.  
  192.     cylinder { <0,0,0>, <0,14,0>, 1     // left side
  193.     }
  194.  
  195.     cylinder { <0, 14, 0>, <7, 14, 0>, 1      // top beam
  196.     }
  197.  
  198.     cylinder { <0, 7, 0>, <7, 7, 0>, 1      // middle beam
  199.     }
  200.     cylinder { <0,0,0>, <7, 0, 0>, 1      // bottom beam
  201.     }
  202.  
  203. }   // end union `E
  204.  
  205.  
  206. #declare Font_Round_F = union {
  207.     sphere { <0,0,0> 1          // B/L
  208.     }   // end sphere
  209.     
  210.     sphere { <0,14,0> 1         // T/L
  211.     }   // end sphere
  212.  
  213.     sphere { <7,14,0> 1         // T/R
  214.     }   // end sphere
  215.  
  216.     sphere { <5,7,0> 1         // M/R
  217.     }   // end sphere
  218.  
  219.  
  220.     cylinder { <0,0,0>, <0,14,0>, 1     // left side
  221.     }
  222.  
  223.     cylinder { <0, 14, 0>, <7, 14, 0>, 1      // top beam
  224.     }
  225.  
  226.     cylinder { <0, 7, 0>, <5, 7, 0>, 1      // middle beam
  227.     }
  228.  
  229. }   // end union `F
  230.  
  231.  
  232.  
  233. #declare Font_Round_G = union {
  234.     sphere { <7,3.5,0> 1              // b/r
  235.     }   // end sphere
  236.  
  237.     sphere { <7,7,0> 1              // b/r
  238.     }   // end sphere
  239.     
  240.     sphere { <7,10.5,0> 1              // t/r
  241.     }   // end sphere
  242.  
  243.     sphere { <4,7,0> 1              // left end of beam
  244.     }   // end sphere
  245.  
  246.     cylinder { <0,3.5,0>, <0,10.5,0>, 1      // left side
  247.     }
  248.  
  249.     cylinder { <7,3.5,0>, <7,7,0>, 1      //right side
  250.     }
  251.  
  252.     cylinder { <4,7,0>, <7,7,0>, 1      //bottom beam
  253.     }
  254.  
  255.     torus { 3.5, 1 sturm              // top arch
  256.         rotate < 90, 0, 0>
  257.         translate < 3.5, 10.5, 0>
  258.         clipped_by {
  259.             box { <-1, 10.5, -1>, <8, 15, 1> } 
  260.         }
  261.     }
  262.  
  263.     torus { 3.5, 1 sturm              // bottom arch
  264.         rotate < 90, 0, 0>
  265.         translate < 3.5, 3.5, 0>
  266.         clipped_by {
  267.             box { <-1, -1, -1>, <8, 3.5, 1> }
  268.         }
  269.     }   // end torus
  270.  
  271. }   // end union `G
  272.  
  273.  
  274.  
  275. #declare Font_Round_H = union {
  276.     sphere { <0,0,0> 1          // B/L
  277.     }   // end sphere
  278.     
  279.     sphere { <0,14,0> 1         // T/L
  280.     }   // end sphere
  281.  
  282.     sphere { <7,0,0> 1          // B/R
  283.     }   // end sphere
  284.     
  285.     sphere { <7,14,0> 1         // T/R
  286.     }   // end sphere
  287.  
  288.     cylinder { <0,0,0>, <0,14,0>, 1     // left side
  289.     }
  290.  
  291.     cylinder { <7,0,0>, <7,14,0>, 1      // right side
  292.     }
  293.  
  294.     cylinder { <0, 7, 0>, <7, 7, 0>, 1      // middle beam
  295.     }
  296.  
  297.  
  298. }   // end union `H
  299.  
  300.  
  301.  
  302. #declare Font_Round_I = union {
  303.     sphere { <0,0,0> 1          // B/L
  304.     }   // end sphere
  305.     
  306.     sphere { <0,14,0> 1         // T/L
  307.     }   // end sphere
  308.  
  309.     cylinder { <0,0,0>, <0,14,0>, 1     // I beam (center)
  310.     }
  311.  
  312. }   // end union `I
  313.  
  314.  
  315.  
  316. #declare Font_Round_J = union {
  317.     sphere { <0,3.5,0> 1
  318.     }   // end sphere
  319.     
  320.     sphere { <7,14,0> 1
  321.     }   // end sphere
  322.  
  323.     cylinder { <7,3.5,0>, <7,14,0>, 1
  324.     }
  325.  
  326.  
  327.     torus { 3.5, 1 sturm              // bottom arch
  328.         rotate < 90, 0, 0>
  329.         translate < 3.5, 3.5, 0>
  330.         clipped_by {
  331.             box { <-1, -1, -1>, <8, 3.5, 1> }
  332.         }
  333.     }   // end torus
  334.  
  335. }   // end union `J
  336.  
  337.  
  338. #declare Font_Round_K = union {
  339.     sphere { <0,0,0> 1          // B/L
  340.     }   // end sphere
  341.     
  342.     sphere { <0,14,0> 1         // T/L
  343.     }   // end sphere
  344.  
  345.     sphere { <7,0,0> 1          // B/R
  346.     }   // end sphere
  347.     
  348.     sphere { <7,14,0> 1         // T/R
  349.     }   // end sphere
  350.  
  351.     cylinder { <0, 0, 0>, <0, 14, 0>, 1     // B/L to U/L stroke
  352.     }
  353.  
  354.     cylinder { <0, 7, 0>, <7, 14, 0>, 1     // c/l to u/r stroke
  355.