Vol. XIV, No. 2
CSA Newsletter Logo
Fall, 2001

Modeling Surfaces - A Tedious Job

Harrison Eiteljorg, II


Modeling surfaces in a CAD program can be very time consuming, but to the casual observer it is not obvious why that should be the case. An artist drawing a simple box can quickly and easily produce a drawing such as the one in Fig. 1 here. One would expect that a CAD program would make the process easier.


Fig. 1 - A box shown as a hidden-line drawing.

The contrary is the case. It is harder to draw the block correctly with a CAD program, because the artist can imagine the scene and draw lines only. The artist must know which lines to draw and which to suppress so that the result is "correct," but the work is a matter of drawing lines, just lines.

A CAD model is quite different. If the lines marking the edges of the box are drawn properly in three-dimensional space, the resulting view of the box is the drawing shown in Fig. 2 (commonly called a wire-frame drawing). The CAD program cannot generate a drawing with some of the lines hidden unless there are explicit surfaces that hide those lines or parts of lines. As a result, any surface in a CAD system must be explicitly defined as such.


Fig. 2 - The box shown in Fig. 1 as a CAD model in a wire-frame view.

Making surfaces explicit is the easier part of the problem; simple planes are more time-consuming to draw than lines but not greatly so. More difficult is the need to model as simple, flat surfaces the not-so-simple, not-quite-flat surfaces of the real world. After all, archaeologists and architectural historians dealing with standing structures or archaeological sites are confronted almost exclusively with irregular objects. Even the face of a carefully polished marble block is unlikely to be absolutely flat; so, once surveyed, the corners will not provide a proper base for a single flat surface. The following example is intended to illustrate the problems encountered with irregular surfaces that are (and should be) treated as flat despite the fact that they are not.

Another box is shown without a top in Fig. 3; the top is not a simple plane because of the shape of the box. Fig. 4 shows the top with a crease along one diagonal; Fig. 5 shows a crease along the other diagonal. The top of the box is the portion at issue here; it should be treated as flat even though it is not. (The shape has been exaggerated to make the drawings clear; this particular surface might not be treated as a single surface in a good model.)


Fig. 3 - An oddly-shaped box, with no top, in a hidden line view view (left) and a rendered view (right).


Fig. 4 - The box in Fig. 3, with a two-plane top, in a hidden line view with the line between the two planes of the top showing (left), a hidden-line view with the line between the two planes not showing (middle), and a rendered view (right).


Fig. 5 - The box in Fig. 3, with a second two-plane top, in a hidden line view with the line between the two planes of the top showing (left), a hidden-line view with the line between the two planes not showing (middle), and a rendered view (right).

Given the four corners of the top and no other information, there is no way to determine whether Fig. 4 or 5 is the better representation of the box, and the difference will not even be apparent to most users of the model, since the crease will normally be hidden, as in the middle images of each version. Finally, the top can be drawn as a four-sided surface, as shown in Fig. 6, even though it is not flat. In this version, the shape of the top is unclear to a viewer, even when rendered, and a sophisticated user cannot retrieve further information. It is not flat, but it appears to be. Its real shape is not fully specified. That is preferable if the actual shape is not certain, as is often the case with subtly irregular surfaces. In addition, given only the four corners, there are many other possible shapes that differ in small ways from all of the possibilities shown.


Fig. 6 - The box in Fig. 3, with a single-surface top in a hidden line view (left) and a rendered view (right).

The four-sided version of the top is certainly the best choice for modeling a surface that if very nearly flat unless the survey data provide more information than the coordinates of the corners. However, if the object has more than four sides, that process will not work (in AutoCAD - even four sides presents problems in many other CAD programs). As a result, the process of modeling many-sided, nearly flat surfaces with AutoCAD involves stitching together many triangular surfaces, since the triangular surfaces are always planes, as was done in Fig. 4 and Fig. 5.

The problem is very clear when modeling a surface with a hole, for instance, a block with a cutting in it. Fig. 7 shows the same box shape used in the previous figures, but with a hole. Of course, since the box top is not flat; the corners of the hole do not form a single plane either. Now the box top must be made of 4 quadrilateral surfaces or 8 triangles, as shown in Figures 7 and 8. In each case the individual surfaces have been stitched together to give the appearance of a single surface.


Fig. 7 - The box in Fig. 3, with a hole in the top. This version was made with four quadrilateral surfaces making the top. Shown are a hidden-line view with the lines between surfaces showing (left), a hidden-line view without the lines between surfaces (middle), and a rendered view (right).


Fig. 8 - The box in Fig. 3, with a hole in the top. This version was made with eight triangular surfaces making the top. Shown are a hidden-line view with the lines between surfaces showing (left), a hidden-line view without the lines between surfaces (middle), and a rendered view (right).

The CAD models shown in the figures all require explicitly defined surfaces, not simply lines in space. Furthermore, they require surfaces that are stitched together to appear to be one, not many, since the aim is to show the top of the box as a simple surface that seems to be flat. With explicitly defined surfaces the boxes can be properly viewed from any angle, and the appearance will be "correct" in the sense that the proper lines will show, and with properly stitched-together small surfaces the appearance of the finished model will match its real-world appearance.

Surfaces add complexity to the model-making process, but they are necessary to the effective use of a model. Complex surfaces add a great deal more complexity, but they are equally important. Understanding how to use them properly is crucial to constructing a good model.

-- Harrison Eiteljorg, II

To send comments or questions to the author, please see our email contacts page.


For other Newsletter articles concerning CAD, consult the Subject index.

Next Article: Linux on the Desktop?

Table of Contents for the Fall, 2001 issue of the CSA Newsletter (Vol. XIV, No. 2)

Master Index Table of Contents for all CSA Newsletter issues on the Web

CSA Home Page