Advanced Graphics

Dr Neil Dodgson, University of Cambridge Computer Laboratory
Part II course, 1998


Lecture 2 Index
...back to lecture 1
Part A: Conics, quadrics, and superquadrics
Part B: Generative models
Part C: Converting primitives to polygons
on to lecture 3...

2B) Generative models

Sweeps

These are three dimensional objects generated by sweeping a two dimensional shape along a path in 3D. Two special cases of the sweep are surfaces of revolution, where the path is a circle; and extrusions, where the path is a straight line.

Surfaces of revolution are covered in R&A section 6-2. Sweeps are covered in R&A section 6-3 and FvDFH section 12.4.

Extrusion

<Image:
an example extrusion.> <Image:
the same extrusion, rendered tranparently.>
On the left (above) is an example extrusion. On the right is its generating polygon (the red star), with the generated 3D object shown in semi-transparent cyan.

Surface of revolution

<Image:
an example surface of revolution.> <Image:
the same surface of revolution, rendered tranparently.>
<Image:
the same surface of revolution, rendered tranparently.> On the left (above) is an example surface of revolution. On the right (above) is its generating quadrilateral (the red polygon), with the generated 3D object shown in semi-transparent cyan. Below that is another view of the same surface of revolution.

Revolution or extrusion?

<Image:
a 3D object.> <Image:
the same object generated as a surface of revolution (rendered tranparently).>
<Image:
the same object generated as an extrusion (rendered tranparently).> Some objects can be generated in more than one way. The hollow cylinder shown above (left) could be generated as either a surface of revolution (above right) or as an extrusion (immediately right).

Generalised Cylinders

Pushing the idea of sweeps to its limit brings us to generalised cylinders. Here you may specify any or all of the following things to produce a three dimensional swept shape: <Image: a generalised cylinder: but is it art?> At right is a generalised cylinder with a circular cross-section, semi-circular path, and varying scale.

You may be able to think of parameters, other than those in the list above, which you could modify to make an even more generalised cylinder.

Exercises
  1. [1998/7/12] Show how the following object can be represented as a swept object.
    <Image: the object from the 1998 exam question> <Image: the object from the 1998 exam question>

  2. Use the following different methods of specifying a geometrical model for this picture (assuming it's a three dimensional model and not a line drawing). Come as close as you can to the original for any of the methods, and describe the difficulties in using a particular method for this model.
    1. Extrusions
    2. Surfaces of revolution
    3. Sweeps
    4. Generalized cylinders
  3. For each of the following categories list five real-world objects which could be represented by the primitives in the category.
    1. The ray-tracing primitives in Lecture 1C
    2. Extrusions
    3. Surfaces of revolution
    4. Generalized cylinders
  4. A flume (water tunnel) at a swimming complex is modeled as a circle swept along a particular path. The designers also want to model the volume swept out by a person traveling down the flume. (We can approximate the cross-section of a person with something roughly elliptical and we'll assume the `virtual' person doesn't move legs or arms while hurtling along.) Explain why a standard `sweep' is insufficient to do this and explain what form of generative model would be needed to model the volume swept out by a person traveling down the flume.


Lecture 2 Index
...back to lecture 1
Part A: Conics, quadrics, and superquadrics
Part B: Generative models
Part C: Converting primitives to polygons
on to lecture 3...


Neil Dodgson | Advanced Graphics | Computer Laboratory

Source file: l2b.html
Page last updated on Mon Sep 7 12:47:50 BST 1998
by Neil Dodgson (nad@cl.cam.ac.uk)