home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Computerspiele Selbermachen
/
computerspieleselbermachen.iso
/
fnt
/
fntrnd.inc
Wrap
Text File
|
1994-02-11
|
35KB
|
1,547 lines
#declare Font_Round_Ver=version
#version 2.0
// FNTRND.INC v2.0
//
// Round fonts for use with POV-RAY v2.0
//
// Written by: Howard G. Shank
// Aurum Software
// PO Box 156
// Ankeny, IA 50021
// 515/964-0317
//
// CSERVE: 72724, 3066
//
// Copyright is retained by Howard G. Shank
// with rights granted for use and distribution
// both private and commercial provided this copyright
// notice is distributed with this file and the author's
// credit remains intact.
//
//
// Description:
//
// Fully scalable and translatable fonts.
// Font is positioned with the lower left corner being <-1, -1, -1>
// and the upper right corner being <8, 15, 1>
// All letters have a radius of 1. By scaling the object, these points
// are modified accordingly.
//
// USAGE:
// Object {
// Font_Round_A
// pigment { color Red } // or whatever
// translate <0, 0, 0> // 0,0,0 does not move from original position
// // and whatever other options you intend to use.
// } // end of Object block
//
// Begin upper case round font letters
// Capital A
#declare Font_Round_A = union {
cylinder { <0,0,0>, <0,10.5,0>, 1 // left side
}
cylinder { <7,0,0>, <7,10.5,0>, 1 // left side
}
torus { 3.5, 1 sturm // top arch
rotate < 90, 0, 0>
translate < 3.5, 10.5, 0>
clipped_by {
box { <-1, 10.5, -1>, <8, 15, 1> }
}
}
sphere { <0, 0, 0>, 1 } // left foot
sphere { <7, 0, 0>, 1 } // right foot
cylinder { <0,7.5,0>, <7,7.5,0>, 1 } // cross beam
} // end union `A
// Capital B
#declare Font_Round_B = union {
sphere { // B/L corner
<0, 0, 0>, 1
}
sphere { // T/L corner
<0, 14, 0>, 1
}
torus { 3.5, 1 sturm // top arch
rotate < 90, 0, 0>
translate < 3.5, 10.5, 0>
clipped_by {
box { <3.5, 7, -1>, <10, 15, 1> }
}
} // end torus
torus { 3.5, 1 sturm // bottom arch
rotate < 90, 0, 0>
translate < 3.5, 3.5, 0>
clipped_by {
box { <3.5, -1, -1>, <10, 8, 1> }
}
} // end torus
cylinder { <0,0,0>, <0,14,0>, 1 // B/L to T/L side
}
cylinder { <0,14,0>, <4,14,0>, 1 // Top beam
}
cylinder { <0,7,0>, <4,7,0>, 1 // Middle beam
}
cylinder { <0,0,0>, <4,0,0>, 1 // Bottom beam
}
} // end union `B
// Capital C
#declare Font_Round_C = union {
sphere { <7,3.5,0> 1
} // end sphere
sphere { <7,10.5,0> 1
} // end sphere
cylinder { <0,3.5,0>, <0,10.5,0>, 1
}
torus { 3.5, 1 sturm // top arch
rotate < 90, 0, 0>
translate < 3.5, 10.5, 0>
clipped_by {
box { <-1, 10.5, -1>, <8, 15, 1> }
}
}
torus { 3.5, 1 sturm // bottom arch
rotate < 90, 0, 0>
translate < 3.5, 3.5, 0>
clipped_by {
box { <-1, -1, -1>, <8, 4, 1> }
}
} // end torus
} // end union `C
// Capital D
#declare Font_Round_D = union {
sphere { <0,0,0> 1 // B/L
} // end sphere
sphere { <0,14,0> 1 // T/R
} // end sphere
cylinder { <0,0,0>, <0,14,0>, 1 // left side
}
cylinder { <7,3.5,0>, <7,10.5,0>, 1 // right side
}
cylinder { <0, 14, 0>, <3.5, 14, 0>, 1 // top side
}
cylinder { <0,0,0>, <3.5, 0, 0>, 1 // bottom side
}
torus { 3.5, 1 sturm // top arch
rotate < 90, 0, 0>
translate < 3.5, 10.5, 0>
clipped_by {
box { <3.5, 10.5, -1>, <8, 15, 1> }
}
}
torus { 3.5, 1 sturm // bottom arch
rotate < 90, 0, 0>
translate < 3.5, 3.5, 0>
clipped_by {
box { <3.5, -1, -1>, <8, 3.5, 1> }
}
} // end torus
} // end union `D
#declare Font_Round_E = union {
sphere { <0,0,0> 1 // B/L
} // end sphere
sphere { <0,14,0> 1 // T/L
} // end sphere
sphere { <7,14,0> 1 // T/R
} // end sphere
sphere { <7,7,0> 1 // M/R
} // end sphere
sphere { <7,0,0> 1 // B/R
} // end sphere
cylinder { <0,0,0>, <0,14,0>, 1 // left side
}
cylinder { <0, 14, 0>, <7, 14, 0>, 1 // top beam
}
cylinder { <0, 7, 0>, <7, 7, 0>, 1 // middle beam
}
cylinder { <0,0,0>, <7, 0, 0>, 1 // bottom beam
}
} // end union `E
#declare Font_Round_F = union {
sphere { <0,0,0> 1 // B/L
} // end sphere
sphere { <0,14,0> 1 // T/L
} // end sphere
sphere { <7,14,0> 1 // T/R
} // end sphere
sphere { <5,7,0> 1 // M/R
} // end sphere
cylinder { <0,0,0>, <0,14,0>, 1 // left side
}
cylinder { <0, 14, 0>, <7, 14, 0>, 1 // top beam
}
cylinder { <0, 7, 0>, <5, 7, 0>, 1 // middle beam
}
} // end union `F
#declare Font_Round_G = union {
sphere { <7,3.5,0> 1 // b/r
} // end sphere
sphere { <7,7,0> 1 // b/r
} // end sphere
sphere { <7,10.5,0> 1 // t/r
} // end sphere
sphere { <4,7,0> 1 // left end of beam
} // end sphere
cylinder { <0,3.5,0>, <0,10.5,0>, 1 // left side
}
cylinder { <7,3.5,0>, <7,7,0>, 1 //right side
}
cylinder { <4,7,0>, <7,7,0>, 1 //bottom beam
}
torus { 3.5, 1 sturm // top arch
rotate < 90, 0, 0>
translate < 3.5, 10.5, 0>
clipped_by {
box { <-1, 10.5, -1>, <8, 15, 1> }
}
}
torus { 3.5, 1 sturm // bottom arch
rotate < 90, 0, 0>
translate < 3.5, 3.5, 0>
clipped_by {
box { <-1, -1, -1>, <8, 3.5, 1> }
}
} // end torus
} // end union `G
#declare Font_Round_H = union {
sphere { <0,0,0> 1 // B/L
} // end sphere
sphere { <0,14,0> 1 // T/L
} // end sphere
sphere { <7,0,0> 1 // B/R
} // end sphere
sphere { <7,14,0> 1 // T/R
} // end sphere
cylinder { <0,0,0>, <0,14,0>, 1 // left side
}
cylinder { <7,0,0>, <7,14,0>, 1 // right side
}
cylinder { <0, 7, 0>, <7, 7, 0>, 1 // middle beam
}
} // end union `H
#declare Font_Round_I = union {
sphere { <0,0,0> 1 // B/L
} // end sphere
sphere { <0,14,0> 1 // T/L
} // end sphere
cylinder { <0,0,0>, <0,14,0>, 1 // I beam (center)
}
} // end union `I
#declare Font_Round_J = union {
sphere { <0,3.5,0> 1
} // end sphere
sphere { <7,14,0> 1
} // end sphere
cylinder { <7,3.5,0>, <7,14,0>, 1
}
torus { 3.5, 1 sturm // bottom arch
rotate < 90, 0, 0>
translate < 3.5, 3.5, 0>
clipped_by {
box { <-1, -1, -1>, <8, 3.5, 1> }
}
} // end torus
} // end union `J
#declare Font_Round_K = union {
sphere { <0,0,0> 1 // B/L
} // end sphere
sphere { <0,14,0> 1 // T/L
} // end sphere
sphere { <7,0,0> 1 // B/R
} // end sphere
sphere { <7,14,0> 1 // T/R
} // end sphere
cylinder { <0, 0, 0>, <0, 14, 0>, 1 // B/L to U/L stroke
}
cylinder { <0, 7, 0>, <7, 14, 0>, 1 // c/l to u/r stroke