[comp.graphics] Goblet database

leech@alanine.cs.unc.edu (Jonathan Leech) (12/17/88)

In article <252@vixen.uucp> ronbo@vixen.UUCP (Ron Hitchens) writes:
>   Somebody really ought to generate the data for a teacup to match this
>teapot.  Any volunteers?

    No teacups, but here's Jim Blinn's goblet in one of its most
primitive incarnations (folks may recall Blinn using the goblet in
forms ranging from vector to bump-mapped Bezier patch to demonstrate
the evolution of rendering techniques).

    The goblet is just a surface of revolution (much simpler than the
teapot). Here are the (r,z) of the profile for those who wish to roll
their own:

    R	    Z
    --	    --
    .5	    -0.4    (base of goblet)
    .1	    -0.3
    .1	     0
    .5	     0.2
    .5	     0.7
    .4	     0.7
    .4	     0.3    (bottom of cup)

    For those who don't wish to roll their own, here's a polygon form
sampled every 60 degrees. The database format used is:

	# This is a comment
	PNT N X Y Z	    - define point N at coordinates (X,Y,Z)
	POLY N M P1 .. PN   - define poly N with M points numbered
				P1 .. PN

    Color to taste and pour.

    Please don't gratuitously repost this database in other formats as
keeps happening with the teapot. It's not so interesting that yet more
net bandwidth should be spent on it.

# The goblet in polygon form
pnt 0 0.5      0	-0.4
pnt 1 0.25     0.433013 -0.4
pnt 2 -0.25    0.433013 -0.4
pnt 3 -0.5     6.12303e-17 -0.4
pnt 4 -0.25    -0.433013 -0.4
pnt 5 0.25     -0.433013 -0.4
# Band 1
pnt 6 0.1      0	-0.3
pnt 7 0.05     0.0866025 -0.3
pnt 8 -0.05    0.0866025 -0.3
pnt 9 -0.1     1.22461e-17 -0.3
pnt 10 -0.05	-0.0866025 -0.3
pnt 11 0.05	-0.0866025 -0.3
# Base polygon
poly 1 6 5 4 3 2 1 0
poly 2 4 0 1 7 6
poly 3 4 1 2 8 7
poly 4 4 2 3 9 8
poly 5 4 3 4 10 9
poly 6 4 4 5 11 10
poly 7 4 5 0 6 11
# Band 2
pnt 12 0.1	0	 0
pnt 13 0.05	0.0866025 0
pnt 14 -0.05	0.0866025 0
pnt 15 -0.1	1.22461e-17 0
pnt 16 -0.05	-0.0866025 0
pnt 17 0.05	-0.0866025 0
poly 8 4 6 7 13 12
poly 9 4 7 8 14 13
poly 10 4 8 9 15 14
poly 11 4 9 10 16 15
poly 12 4 10 11 17 16
poly 13 4 11 6 12 17
# Band 3
pnt 18 0.5	0	 0.2
pnt 19 0.25	0.433013 0.2
pnt 20 -0.25	0.433013 0.2
pnt 21 -0.5	6.12303e-17 0.2
pnt 22 -0.25	-0.433013 0.2
pnt 23 0.25	-0.433013 0.2
poly 14 4 12 13 19 18
poly 15 4 13 14 20 19
poly 16 4 14 15 21 20
poly 17 4 15 16 22 21
poly 18 4 16 17 23 22
poly 19 4 17 12 18 23
# Band 4
pnt 24 0.5	0	 0.7
pnt 25 0.25	0.433013 0.7
pnt 26 -0.25	0.433013 0.7
pnt 27 -0.5	6.12303e-17 0.7
pnt 28 -0.25	-0.433013 0.7
pnt 29 0.25	-0.433013 0.7
poly 20 4 18 19 25 24
poly 21 4 19 20 26 25
poly 22 4 20 21 27 26
poly 23 4 21 22 28 27
poly 24 4 22 23 29 28
poly 25 4 23 18 24 29
# Band 5
pnt 30 0.4	0	 0.7
pnt 31 0.2	0.34641  0.7
pnt 32 -0.2	0.34641  0.7
pnt 33 -0.4	4.89843e-17 0.7
pnt 34 -0.2	-0.34641 0.7
pnt 35 0.2	-0.34641 0.7
poly 26 4 24 25 31 30
poly 27 4 25 26 32 31
poly 28 4 26 27 33 32
poly 29 4 27 28 34 33
poly 30 4 28 29 35 34
poly 31 4 29 24 30 35
# Band 6
pnt 36 0.4	0	 0.3
pnt 37 0.2	0.34641  0.3
pnt 38 -0.2	0.34641  0.3
pnt 39 -0.4	4.89843e-17 0.3
pnt 40 -0.2	-0.34641 0.3
pnt 41 0.2	-0.34641 0.3
poly 32 4 30 31 37 36
poly 33 4 31 32 38 37
poly 34 4 32 33 39 38
poly 35 4 33 34 40 39
poly 36 4 34 35 41 40
poly 37 4 35 30 36 41
# Cap polygon
poly 38 6 36 37 38 39 40 41
--
    Jon Leech (leech@cs.unc.edu)    __@/
    ``Captain Sverre, should you disobey my command, I shall exercise
      my option to fire this missile, thereby airbursting a
      one-kiloton warhead within ten inches of your body.''
	- James Morrow, _This is the Way the World Ends_