Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #5032

Re: Interactive settings for ParamPlot3D. Mesh not quite working.

From Christopher Young <cy56@comcast.net>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Interactive settings for ParamPlot3D. Mesh not quite working.
Date 2011-09-18 08:14 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <j549a1$6ad$1@smc.vnet.net> (permalink)
References <201109160950.FAA12506@smc.vnet.net> <1400F504-509C-453D-9976-F191966570B8@gmail.com>

Show all headers | View raw


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 comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Re: Interactive settings for ParamPlot3D. Mesh not quite working. Christopher Young <cy56@comcast.net> - 2011-09-18 08:14 +0000

csiph-web