Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Revealing HiddenSurfaces
Replies: 2   Last Post: Jul 21, 1996 8:41 PM

 Messages: [ Previous | Next ]
 David Smith Posts: 5 Registered: 12/11/04
Revealing HiddenSurfaces
Posted: Jul 19, 1996 3:05 AM

(I'm not sure whether this message made it to the group when I sent it first, so
I'm reposting it. Cheers.)

Could someone help on this? Thanks.

I want to plot two things in a single 3D graph. One thing is just a
surface which I can do easily enough as ...

model = Plot3D[(x + y)/2,
{x,0,25},{y,0,25}, PlotPoints -> 2,
HiddenSurface -> False]

where I can see the hidden surface. Superimposed on this I wanted data points
(where the `error` distance between each data point and the model surface
is shown by a vertical line). I did this in two steps. First make the
error lines with the example set ...

data = Show[Graphics3D[{Line[{{0,1.97,0.98},{0,1.97,0.99}}],
Line[{{0,8.72,4.02},{0,8.72,4.36}}],
Line[{{0,22.1,8.38},{0,22.1,11.05}}]},
Axes -> True]]

Finally plot everything together.

The problem is that I`m unable to make the model surface transparent so
that I can see the error lines of the data points behind the surface.
Unfortunately Graphics3D doesn`t have a HiddenSurface option (Plot3D and
Show do). Is there some way of doing this (maybe converting data to some
other kind of graphics object)? This has been bugging me and I would
really appreciate some pointers. Thanks.

David
dsmith@psy.ucsd.edu

Date Subject Author
7/19/96 David Smith
7/20/96 Dave Wagner
7/21/96 Xah Lee