Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #5032 > unrolled thread
| Started by | Christopher Young <cy56@comcast.net> |
|---|---|
| First post | 2011-09-18 08:14 +0000 |
| Last post | 2011-09-18 08:14 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Interactive settings for ParamPlot3D. Mesh not quite working. Christopher Young <cy56@comcast.net> - 2011-09-18 08:14 +0000
| From | Christopher Young <cy56@comcast.net> |
|---|---|
| Date | 2011-09-18 08:14 +0000 |
| Subject | Re: Interactive settings for ParamPlot3D. Mesh not quite working. |
| Message-ID | <j549a1$6ad$1@smc.vnet.net> |
Thanks very much, that looks like a better, quicker way to do it.
On Sep 17, 2011, at 4:11 AM, Heike Gramberg wrote:
> Instead of changing the Mesh specifications, you could change the MeshFunctions
> to indicate which mesh lines you want, e.g.
>
> saddleParamPlot3[opacity_, xBnds_, yBnds_, zBnds_, drawXMesh_,
> drawYMesh_, drawZMesh_] :=
> Module[{
> meshf = Pick[{#1 &, #2 &, #3 &}, {drawXMesh, drawYMesh, drawZMesh}, True],
> meshSpecs = {Range[-xBnds, xBnds], Range[-yBnds, yBnds], Range[-zBnds, zBnds]}},
>
> ParametricPlot3D[
> Flatten[{{u}, {v}, {u v}}], {u, -xBnds, xBnds}, {v, -xBnds, xBnds},
> PlotRange -> {{-xBnds, xBnds}, {-yBnds, yBnds}, {-zBnds, zBnds}},
> BoxRatios -> {xBnds, yBnds, zBnds},
> SphericalRegion -> True,
> FaceGrids -> {{{1, 0, 0}, {Range[-xBnds, xBnds],
> Range[-zBnds, zBnds]}}, {{0, 1, 0}, {Range[-yBnds, yBnds],
> Range[-zBnds, zBnds]}}, {{0, 0, 1}, {Range[-xBnds, xBnds],
> Range[-yBnds, yBnds]}}},
> MeshFunctions -> meshf,
> Mesh -> meshSpecs, BoundaryStyle -> Gray,
> AxesLabel -> {"x", "y", "z"}, PlotStyle -> Opacity[opacity],
> ColorFunctionScaling -> False,
> ColorFunction -> (Hue[0.35 (#3 + 4)/8] &)] /.
> Line[pts_, opts___] :> {Gray, Tube[pts, 0.03, opts]}]
>
> Heike
Chris Young
cy56@comcast.net
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web