MathGroup Archive 2003

[Date Index] [Thread Index] [Author Index]

Search the Archive

plotting a solid

  • To: mathgroup at smc.vnet.net
  • Subject: [mg42139] plotting a solid
  • From: Selwyn Hollis <selwynh at earthlink.net>
  • Date: Fri, 20 Jun 2003 04:57:36 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

I'm interested in a way of plotting a solid defined by

        0 <= z <= f[x,y],   g[x,y] <= 0,

that's better than what I've been doing, which is to fake it using 
ClipFill and PlotRange something like this:

f[x_, y_] := (-x + 1)*(y^2 + 1)

Plot3D[ If[x^2 + y^2 <= 1, f[x, y], -1],
    {x, -1.1, 1.1}, {y, -1.1, 1.1}, PlotRange -> {0, 3},
    ClipFill -> None, PlotPoints -> 100, Mesh -> False,
    BoxRatios -> {1, 1, 1}]

Any ideas?


-----
Selwyn Hollis
http://www.math.armstrong.edu/faculty/hollis


  • Prev by Date: plotting of curve
  • Next by Date: Re: NonlinearFit
  • Previous by thread: Re: plotting of curve
  • Next by thread: Re: plotting a solid