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


Groups > comp.soft-sys.math.mathematica > #4655 > unrolled thread

add arrow to ContourPlot3D

Started byAlan <alan.isaac@gmail.com>
First post2011-08-30 10:36 +0000
Last post2011-09-03 12:08 +0000
Articles 5 — 3 participants

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  add arrow to ContourPlot3D Alan <alan.isaac@gmail.com> - 2011-08-30 10:36 +0000
    Re: add arrow to ContourPlot3D "Kevin J. McCann" <Kevin.McCann@umbc.edu> - 2011-08-31 10:03 +0000
    Re: add arrow to ContourPlot3D Alan <alan.isaac@gmail.com> - 2011-08-31 10:11 +0000
    Re: add arrow to ContourPlot3D Patrick Scheibe <pscheibe@trm.uni-leipzig.de> - 2011-09-01 10:05 +0000
      Re: add arrow to ContourPlot3D Alan <alan.isaac@gmail.com> - 2011-09-03 12:08 +0000

#4655 — add arrow to ContourPlot3D

FromAlan <alan.isaac@gmail.com>
Date2011-08-30 10:36 +0000
Subjectadd arrow to ContourPlot3D
Message-ID<j3ieg4$sd3$1@smc.vnet.net>
I have a ContourPlot3D and I want to add a 3D arrow.  I thought I would be able to do this by adding e.g. Epilog->{Graphics3D[Arrow[{{0, 0, 0}, {v1, v2, v3}}]]} but this does not work.  How should I approach this?

Thanks,
Alan Isaac

[toc] | [next] | [standalone]


#4658

From"Kevin J. McCann" <Kevin.McCann@umbc.edu>
Date2011-08-31 10:03 +0000
Message-ID<j3l0tq$bov$1@smc.vnet.net>
In reply to#4655
For this type of work, you can't beat David Park's Presentations 
package. The package is inexpensive, and allows the construction of 
complicated graphics in a very logical fashion rather than the 
cumbersome Epilog. Here is the code. I will send you the notebook 
directly so you can see the results. The link to David's software is:

http://home.comcast.net/~djmpark/Mathematica.html

Kevin

Get["Presentations`Master`"]
Draw3DItems[
  {
   Opacity[0.5],
   ContourDraw3D[x^3 + y^2 - z^2, {x, -2, 2}, {y, -2, 2}, {z, -2, 2},
    ContourStyle -> {HTML@Peru, HTML@DarkSeaGreen},
    Mesh -> 10],
   Opacity[1],
   AbsolutePointSize[10], Red, Point[{0.25, 0, 0}], Blue,
   Arrow[{{1, 1, 1}, {0.25, 0, 0}}],
   Black,
   VerticalText3D[
    Style["Not Dead Center", FontFamily -> "Times"], {1.1, 1.1,
     1.1}, {0.2, 0 \[Degree], Blue, Blue}]
   },
  NeutralLighting[0.0, 0.6, 0.1],
  NiceRotation,
  Boxed -> False,
  ViewPoint -> {2, -2., 2.},
  ImageSize -> 300
  ]

On 8/30/2011 6:36 AM, Alan wrote:
> I have a ContourPlot3D and I want to add a 3D arrow.  I thought I would be able to do this by adding e.g. Epilog->{Graphics3D[Arrow[{{0, 0, 0}, {v1, v2, v3}}]]} but this does not work.  How should I approach this?
>
> Thanks,
> Alan Isaac
>

[toc] | [prev] | [next] | [standalone]


#4670

FromAlan <alan.isaac@gmail.com>
Date2011-08-31 10:11 +0000
Message-ID<j3l1c7$bv2$1@smc.vnet.net>
In reply to#4655
Well, I can use Show to do this.  So my question change to: why was it
wrong to use Epilog?

Thanks,
Alan Isaac

[toc] | [prev] | [next] | [standalone]


#4692

FromPatrick Scheibe <pscheibe@trm.uni-leipzig.de>
Date2011-09-01 10:05 +0000
Message-ID<j3nldp$p16$1@smc.vnet.net>
In reply to#4655
It just doesn't do what you want it to do because "Epilog is an option
for graphics functions which gives a list of graphics primitives to be
rendered *after* the main part of the graphics is rendered."

In the case of 3d-graphics this means *after* the projection of the
3d-model was projected onto the 2d drawing window:

"In three-dimensional graphics, two-dimensional graphics primitives can
be specified by the Epilog option. The graphics primitives are rendered
in a 0,1 coordinate system. "

Cheers
Patrick


On Wed, 2011-08-31 at 06:05 -0400, Alan wrote:
> Well, I can use Show to do this.  So my question change to: why was it
> wrong to use Epilog?
> 
> Thanks,
> Alan Isaac
> 


[toc] | [prev] | [next] | [standalone]


#4715

FromAlan <alan.isaac@gmail.com>
Date2011-09-03 12:08 +0000
Message-ID<j3t5cf$57n$1@smc.vnet.net>
In reply to#4692
On Sep 1, 6:05 am, Patrick Scheibe <psche...@trm.uni-leipzig.de>
wrote:
> "In three-dimensional graphics, two-dimensional graphics primitives can
> be specified by the Epilog option. The graphics primitives are rendered
> in a 0,1 coordinate system. "

Thanks: now I see that under "more information".

It sounds like this an inherent limitation of the approach to Epilog,
rather than something that will change in the future. (?)  So the
answer as Heike suggested does seem to be "use Show".

Alan

[toc] | [prev] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web