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


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

Re: Putting Points and Lines into RegionPlot3D

Started byBrentt <brenttnewman@gmail.com>
First post2011-11-01 05:05 +0000
Last post2011-11-01 05:05 +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.


Contents

  Re: Putting Points and Lines into RegionPlot3D Brentt <brenttnewman@gmail.com> - 2011-11-01 05:05 +0000

#6084 — Re: Putting Points and Lines into RegionPlot3D

FromBrentt <brenttnewman@gmail.com>
Date2011-11-01 05:05 +0000
SubjectRe: Putting Points and Lines into RegionPlot3D
Message-ID<j8nult$eff$1@smc.vnet.net>
Thank you for pointing out the package to me and the non-package solution.
The package does look cool, maybe after I graduate and am making the
hundreds of dollars my math degree is bound to fetch me. :)

On Mon, Oct 31, 2011 at 11:00 AM, Bob Hanlon <hanlonr357@gmail.com> wrote:

> origin = {0, 0, 0};
> pBox = 1.5;
>
> Show[
>  RegionPlot3D[x^2 + y^2 + z^2 <= 1,
>  {x, -pBox, pBox}, {y, -pBox, pBox}, {z, -pBox, pBox},
>  PlotStyle -> Directive[Yellow, Opacity[0.2]],
>   Mesh -> None],
>  Graphics3D[{Thick,
>   Red, Line[{origin, {1, 0, 0}}],
>   Blue, Line[{origin, {0, 1, 0}}],
>   Green, Line[{origin, {0, 0, 1}}]}]]
>
>
> Bob Hanlon
>
>
> On Mon, Oct 31, 2011 at 7:52 AM, Brentt <brenttnewman@gmail.com> wrote:
> > Hello,
> >
> >
> > How can one put points and lines into a 3D plot?
> >
> > Here is my non-working code for having a unit sphere with a line inside
> of
> > it going from the origin to 1 on the x-axis.
> >
> > origin = {0, 0, 0};
> > pBox = 1.5;
> > RegionPlot3D[
> >  x^2 + y^2 + z^2 <= 1, {x, -pBox, pBox}, {y, -pBox, pBox}, {z, -pBox,
> >  pBox}, PlotStyle -> Directive[Yellow, Opacity[0.2]], Mesh -> None,
> >  Epilog -> {Line[{origin, {0, 1, 0}}]}]
> >
> > Epilog seems to expect only 2D graphics object, which makes me think its
> > not the right option to use. But what option would I use? Is there an
> > available option? Plot3D has the same problem.
> >
>

[toc] | [standalone]


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


csiph-web