The Solid Tools file is a supplement to the Perspective Tools. To use these tools effectively, it will be necessary to download both files.
Perspective_Tools August 30, 2006
Solid_Tools May 10, 2008
Some traced solids were developed shortly after the perspective environment was created. Several years later, I got a useful suggestion from Dr. Krongthong Khairiree, an educator and Sketchpad authority from Thailand. She told me to use the Perspective Tools with iterated constructions. This led to several useful constructions, which I then converted to tools. Then later still, I had an extended exchange with Mario Duarte, of Houston. This led to the simple group of tools, which are not as versatile, but are much more accessible. The Solid Tools file carries all of these. I recommend learning them in the order they appear here.
All of the solids described here require a perspective environment, and the setup tools for that environment are found in the Perspective Tools file. First execute Perspective Setup. For all tools outside of the simple group, Sundial and Colorbar are also required. The sundial controls the direction of the light source. The colorbar controls the color of the solid. The Freeze Sun tool is not required in any case, but it is a useful option that applies to all of the parametrically colored surfaces. It causes the light source to stay fixed as the coordinate system and plotted objects are turned. These controls are explained in more detail on the Perspective Controls page.

As with the other objects, the points that define the solids are referenced to the x-y center and the z center. After an iterated or traced solid is constructed, a crude projection will appear in the x-y plane. This is to help with the alignment of the objects.
The tools in this first group are the simplest and probably the most useful. In fact, they can even work with vertices that have been plotted by someone else’s perspective tools. Construct the vertices first. Choose a tool from the list of polygon names, 3‑gon through 6‑gon. Select the vertices in counterclockwise order. This will construct the sides of the polygon and cyan interior. When the face is turned away from the viewer, these objects will vanish.
There is a second group of tools with the front/back label. These are implemented in the same way, but when the face is turned away, the interior vanishes and the edges are replaced by dashed line segments. This gives the solid a transparent effect. In the image shown here, the pyramid was constructed with 3‑gon front/back and 5‑gon front/back; the cuboid was done with 4‑gon.
For a face with more than six edges, choose Define Plane (simple). In counterclockwise order, select any three points in the plane of the face being drawn. This creates some hidden calculations to be used by the tools that follow. Draw the edges using either Edge or Edge front/back. Be sure to get all of the edges, including those that are already showing on adjacent faces. Construct the polygon interior using the regular Sketchpad tool. Choose Face (simple) and click on the interior. This creates a cyan-colored image of the original face right on top of it. After that, it is necessary to hide the pre-image. The new interior will vanish when the face is turned away.

Frustum is the first and best of the iterated solids. This single tool can be used to construct a prism, a pyramid, a cylinder, a cone, or a frustum of any of these solids. Essentially, it is a right frustum with regular polygon bases. The given objects of the tool define the base center points, the circumradii, and the number of sides on each base. For a prism, make the radii equal. For a pyramid, make the second radius zero. For a cylinder or a cone, hide the lateral edges and increase the number of sides to a very large number. The image above illustrates one problem to watch for. If two solids overlap, there is no real sense of front and back. The Frustum tool has these seven given objects:
(1) base 1x-y defines the horizontal location of the center of the first base.
(2) base 1z defines the elevation of the center of the first base.
(3) radius 1 defines the circumradius of the first base, as measured from point base 1x-y.
(4) base 2x-y defines the horizontal location of the center of the second base.
(5) base 2z defines the elevation of the center of the second base.
(6) radius 2 defines the circumradius of the second base, as measured from point base 2x-y.
(7) sides is a measurement defining the number of sides on each base.

Sphere uses an iterated polygon interior construction, much like the one in Frustum. However, as you move across the surface of a sphere, the angle of incidence of the light (from a point at infinity) changes no matter what direction you move. For that reason, this construction requires a very deep iteration. The last given object is a measurement defining the square root of the iteration depth. For example, if this number is set to 100, then the actual iteration depth is 10,000. Such a large number of calculations will slow down everything else in the sketch. Consider using a parameter for this value. Use a small number at first, and increase the depth after everything is in place. It may be necessary to go into the Advanced Preferences menu and increase the maximum number of iterations. The Sphere tool has these four given objects:
(1) sphere centerx-y defines the horizontal location of the center of the sphere.
(2) sphere centerz defines the elevation of the center of the sphere.
(3) radius defines the radius of the sphere, as measured from point sphere centerx-y.
(4) sqrt(depth) is a measurement defining the square root of the depth. The number of polygonal faces will be the square of this number.

Sphere Segment plots that region of a sphere lying between two parallel planes. It is defined by the horizontal and vertical position of the sphere center, the position of one point on the sphere (a pole), and the depth. When executing the construction, a semicircle will be centered on the x-y center point. Two points on the semicircle can be dragged to position the parallel planes. As with the Sphere tool, the depth can get out of hand in a hurry. The parameter depth defines the number of divisions per 90° of latitude or longitude, so the actual iteration depth of the curved surface varies directly with the square of the parameter.
The resulting image is parametrically colored. Action buttons hide or show the image outline and edges or the grid. As the depth is increased, the faces (with the grid hidden) will tend toward a spherical surface. This tool can also be used to represent a complete sphere, and for certain applications, the optional grid may make it a more effective presentation than that produced by the Sphere tool. The Sphere Segment tool has these five given objects:
(1) sphere centerx-y defines the horizontal location of the center of the sphere.
(2) sphere centerz defines the elevation of the center of the sphere.
(3) polex-y defines the horizontal location of a pole of the sphere.
(4) polez defines the elevation of the pole.
(5) depth controls the depth of the iteration. This number corresponds to the number of divisions per 90°.

Opaque Frustum is a variation of the Frustum tool. It is a conical or cylindrical frustum, no pyramids or prisms. The iterated objects are line segments rather than polygon interiors. For this reason, it is not as versatile, but there is one benefit. The iterated segments overlap and hide iterated polygons. This quality may give it some use as a foreground object. Notice how well it hides the other frustum in the image above. The Opaque Frustum tool has these seven given objects:
(1) base 1x-y defines the horizontal location of the center of the first base.
(2) base 1z defines the elevation of the center of the first base.
(3) radius 1 defines the radius of the first base, as measured from point base 1x-y.
(4) base 2x-y defines the horizontal location of the center of the second base.
(5) base 2z defines the elevation of the center of the second base.
(6) radius 2 defines the radius of the second base, as measured from point base 2x-y.
(7) depth is a measurement defining the number iterations in the construction. The number needed will depend on the size of the frustum.

Opaque Sphere is an early, discarded attempt at a sphere. Rather than an iterated polygon construction, it uses an iterated point. This really is a more efficient way of covering the surface, but there was a problem. The iterated point covers and hides all geometric objects except for other points. This makes it difficult to draw any annotation (e.g., draw a radius of the sphere). It is included in this collection because its opacity may make it useful as a foreground object. The Opaque Sphere tool has these four given objects:
(1) sphere centerx-y defines the horizontal location of the center of the sphere.
(2) sphere centerz defines the elevation of the center of the sphere.
(3) radius defines the radius of the sphere, as measured from point sphere centerx-y.
(4) sqrt(depth) is a measurement defining the square root of the depth. The number of iterated points will be the square of this number.
There are certain advantages to the traced solids. Being simpler, they do not slow down the rest of the objects in a sketch. The cylinder and cone have no bases, so it is possible to look at the interior surface. Since the traces will not cover any geometric objects, they may be useful as background objects.
The Trace Sphere tool has these three given objects:(1) sphere centerx-y defines the horizontal location of the center of the sphere.
(2) sphere centerz defines the elevation of the center of the sphere.
(3) radius defines the radius of the sphere, as measured from point sphere centerx-y.
(1) base centerx-y defines the horizontal location of the center of the base.
(2) base centerz defines the elevation of the center of the base.
(3) apexx-y defines the horizontal location of the apex.
(4) apexz defines the elevation of the apex.
(5) radius defines the radius of the base, as measured from point base centerx-y.
(1) base 1x-y defines the horizontal location of the center of the first base.
(2) base 1z defines the elevation of the center of the first base.
(3) base 2x-y defines the horizontal location of the center of the second base.
(4) base 2z defines the elevation of the center of the second base.
(5) radius 1 defines the radius of the cylinder, as measured from point base 1x-y.
The remaining tools in this package are designed to facilitate the construction of convex polyhedra and color them parametrically. It is left to the reader to do the actual construction of the polyhedron. The job of the tools is to color and outline the faces in such a way that they can be seen only if they are turned toward the viewer, and the color of a face will depend on its position relative to the light source. Implementing these tools requires considerable patience and concentration. It is easy to get turned around, so stop after each face and turn the orientation controls to test the results.
In order to learn by example, consider the rhombic dodecahedron shown here. There are twelve faces, each of which must be colored separately. Each of the twenty-four edges must be draw twice.
In the images below, the solid is partially completed. All of the fourteen vertices have been constructed, and four of the faces (one of which is turned away) have been drawn and colored. The next face to be completed is the vertical face on the right. Three vertices of the face have been colored green and labeled.

Choose the custom tool Define Plane (parametric). It requires the locations of three points in the plane of the face. Just as though you were plotting the points, define the horizontal and vertical positions of points A, B, and C in order. That requires six clicks. When it is finished, there will be no visible change in the image, but several hidden calculations lie underneath. For the Define Plane (parametric) tool, it is okay to use any three non-collinear points in the plane of the face. They must be defined in counterclockwise order.
Now choose Edge. This draws the face edges. Just click the endpoints, as with the line segment tool. Draw all of the edges, even the ones that are shared by the previously drawn faces.

Construct a polygon interior on the four vertices. Choose Face (parametric). Click the interior that was just constructed. It will be parametrically colored. The original interior still lies underneath, which is why it looks brownish in this image. Hide the original interior. Since the two interiors occupy the same region, it may be difficult to select the right one. Watch the status bar as you select. The new, parametrically colored face has a label ending with a prime (') symbol. That is the one that needs to stay.
Turn the orientation controls to test the work. The new face and edges should vanish when it is turn away from the viewer. Also check to see how it responds to changes in the position of the light source.
There is one more option for the edges. The Edge front/back tool will draw a forward edge just like the one above, but it also constructs a dashed edge that appears when the face is turned away from the viewer. This gives the solid a transparent effect. On simple polyhedra it makes it possible to see the shape of the entire solid, but on the more complex solids these extra edges have a tendency to clutter the image.
Three more tools, Define Face (x,y,z), Define Face (r,theta,z), and Define Face (rho,theta,phi) serve the same purpose as Define Face (parametric). The difference is that they work by coordinates: rectangular, cylindrical, and spherical, respectively. Enter the same three points in order by clicking on their coordinates.
Sketchpad has the ability to copy images so that they can be pasted and used in other applications, such as Word or the graphics editor that was used to create the images on this page. Usually that works out quite well, but there are some problems with some of the more complex iterated constructions. When the depth is raised to a very high value, a great number of objects are created, and the clipboard simply does not handle it all. The image suffers terribly. Most of the images on this page were created by using a screen capture instead. First adjust the scale slider so that the image is twice the desired scale. Capture the screen image. (See your graphics editor for screen capture directions.) Resize the image by a factor of 50% and save it to a graphics file (gif, jpg). The dithering that occurs with the reduction has a tendency to soften the jagged edges. The improvement is even more obvious if the images are printed.
Back to the Sketchpad Workshop
Back to Whistler Alley Mathematics