3D-Graphics

We create the 3D graphic images described in Lay's textbook examples 2.7.7 and 2.7.8.

Lay Example 2.7.7

A Box in 3-Space

Data points and adjacency matrix

Let S be the box of example 2.7.8.

In[1]:=

In[2]:=

Out[5]//MatrixForm=

Out[6]//MatrixForm=

RenderData

The procedure RenderData takes an adjacency matrix and a list of points and plots the associated figure in a small screen.

RenderData is from the file "Case2.nb" available in the Case Studies section of the web site supporting Lay's textbook "Linear Algebra, Third Edition."

It is modified slightly to accomodate the data of these examples.

In[7]:=

The Box without Perspective

Since we have not implemented perspective at this stage, we simply project the 3d point with coordinates (x,y,z) to the 2d point with coordinatres (x,y).

We are looking down onto the xy-plane from straight above it.

In[10]:=

Out[11]//MatrixForm=

Rotated and Translated Box,

Still without Perspective

In[14]:=

Out[18]//MatrixForm=

Out[20]//MatrixForm=

Perspective transformations are still not available, so we simply project the 3d point with coordinates (x,y,z) to the 2d point with coordinatres (x,y).

We are looking down onto the xy-plane from straight above it, and the box has been rotated about the y-axis.

In[21]:=

Out[22]//MatrixForm=

Lay Example 2.7.8

Viewing with Perspective

In[25]:=

Out[27]//MatrixForm=

Out[29]//MatrixForm=

The larger face is closer to you.

Created by Mathematica (February 6, 2005) |