|
Computer Science 110 The Art & Science of Computer Graphics Mount Holyoke College Spring 2008
|
|
Lecture 13: Programming Replication
Date: Monday, March 31, 2008
- Announcements
- Special office hours tonight: 6:30-8:30 or so
- New Mead bootable CD available
- Labs this week: replicated objects
- Lecture assignment recap
- Programming
- A function with multiple uses: adding both salt and pepper
- Another option: adding items from a list
- Adding lots of items in a pattern: a multiAdd function
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.
- 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
)
- SaltAndPepper
- SpiceMix
- Doughnuts
- MoreDoughnuts