>> From: Herman Jaramillo
| >> From: "Nathan Sokalski"
| I would like to add sides to shapes I have plotted using plot3d (such as
| cylinders). Therefore, I basically need to "cut" shapes such as circles out
| of planes. Is there a way to do this? If so, what is it?
Here is an example:
mycone := cylinderplot(z, theta=0..2*Pi,
z=0..-2.4,style=wireframe,shading=ZGREYSCALE,numpoints=1000):
myplane := plot3d(-0.9,
x=-1..1,y=-2..2,style=PATCHNOGRID,shading=ZGREYSCALE,numpoints=1000):
mycircle :=
spacecurve([0.9*cos(t),0.9*sin(t),-0.9],t=0..2*Pi,color=black,numpoints=1000,thi
ckness=2):
display(mycone, myplane,mycircle)
These instructions display a cone, a plane cutting the cone and a
circle,
the intersection of the cone with the plane.
Regards.
Herman.
--
Herman Jaramillo phone: 713-689-6503
Research Geophysicist fax : 713-689-6100
Baker Hughes (Western Geophysical) email:
3600 Briarpark Drive (77042-5275)
P.O. Box 2469
Houston, Texas 77252-2469
|