Computer Science 110
The Art & Science of Computer Graphics

Mount Holyoke College
Spring 2008


Lecture 13: Programming Replication
Date: Monday, March 31, 2008


Agenda

Lecture Assignment

Due at the start of class, Wednesday, April 2.

Turn in a short answer to the following question. Please turn in a hard copy (typeset or handwritten are OK). We will discuss these questions during class, so no late submissions are accepted.

  1. Using the multiAdd function from the Doughnuts example, write Mead code that will add 50 red spheres, each of size 10x10x10, which are centered at (0,0,0), (10,10,10), (20,20,20), (30,30,30), ... All you need to do is to fill in the parameters to multiAdd below:
    (object littleRedSphere Sphere
       (material redPlastic)
       (scale .1 .1 .1)
    )
    
    (multiAdd
    
    
    
    
    
    
    
    )
    

Examples