Computer Science 112
The Art & Science of Computer Graphics

Spring 2016, The College of Saint Rose

Lecture 6: Model Building; Constructive Solid Geometry: Groups
Date: Monday, February 8, 2016


Agenda

Lecture 6 Assignment

Due at the start of class, Wednesday, February 10.

Please submit answers to these questions either as a hard copy (typeset or handwritten are OK) or by email to terescoj AT strose.edu by the start of class. Please use a clear subject line when submitting by email (e.g., CSC 112 Lecture 6 Assignment , Joe Student). We will discuss these questions at the start of class, so no late submissions are accepted.

(10 points) Modify the "face" model we developed in class last week to define some names to use in place of the numbers for sizes and positions of parts of the face. For example, the 10:25 section's face includes:

scene.add(sphere, scale(1.5, 2.5, 1.5), whitePlaster)

For this, one might define names

headDiameter = 150
headHeight = 250

which would allow the above to be rewritten in terms of those names:

scene.add(sphere, 
          scale(headDiameter/100, headHeight/100, headDiameter/100), 
          whitePlaster)

Terminology

Examples