problem1.

problem2.

 

problem3

 

problem4 problem5

 

problem6

 

problem7

Problem 1. Create a 30 x 30 mesh using a two-dimensional array of Vec3D's.

Problem 2. Create a function that draws your mesh a solid surface and sets the color of each face according to the simple lighting model discussed in class.

Problem 3. Create a function that makes a mountain out of your mesh.

Problem 4. Create a function that produces waves in one direction (along x) in your mesh.

Problem 5. Create a function that produces waves in two directions (along x and z ) in your mesh.

Problem 6. Create a function that adds random variation to your mesh.

Problem 7. Create a function that produces multiple vertical distortions in your mesh.