Introduction to 3D graphics

Comprehension Questions

Math 250 - Mathematical Computing
Christopher Hanusa

10-1. Create a grid of spheres.

10-2. Create a square with some thickness.  It should look something like this:

10-3. Put spheres on the corners of your square from Question 2 using the Map command, similar to this:

10-4. Create three sides of a house using polygonal faces.

Hint 1: (expand to see)

First determine the coordinates of each of the corners of the faces.

Hint 2: (expand to see)

You can create one face of the tetrahedron in this way:

v1={0,0,0};
v2={0,0,1};
v3={0,1,1};
v4={0,1,0};

Graphics3D[Polygon[{v1,v2,v3,v4}]]

10-5. Create a tetrahedron using PolyhedronData.  Use one line of code.

10-6. Create an ice cream cone with three different flavors of ice cream, like this:

Hint 1: (expand to see)

Use the options Lighting->”Neutral” and Boxed->False to make the colors work correctly and to have no box around the final form.