Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2007
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2007

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

Search the Archive

Re: Bug with 3D graphics lines

  • To: mathgroup at smc.vnet.net
  • Subject: [mg80999] Re: [mg80958] Bug with 3D graphics lines
  • From: Syd Geraghty <sydgeraghty at mac.com>
  • Date: Fri, 7 Sep 2007 02:10:08 -0400 (EDT)
  • References: <200709060930.FAA15401@smc.vnet.net>

Chuck,

I tried your 2nd code below on my system and it seems OK to me...

So just to make sure I graphed the all lines together (1 redundantly!)


line1 = Line[{{0, 0, 0}, {4, 4, 0}}];
line2 = Line[{{0, 0, 0}, {0, 0, 2}}];
line3 = Line[{{0, 0, 0}, {4, 4, 0}}];
line4 = Line[{{1, 1, 0}, {1, 1, 2}}];
Show[Graphics3D[{line1, line2, line3, line4}],
  PlotRange -> {{-5, 5}, {-5, 5}, {0, 2}}, Axes -> True,
  AxesLabel -> {x, y, z}]


"6.0 for Mac OS X x86 (32-bit) (June 19, 2007)"

With above code do you still see a problem on your V6 on your machine?


Cheers ... Syd Geraghty


On Sep 6, 2007, at 2:30 AM, chuck009 wrote:

> Seems to be a problem with Line when drawing a line in 3D. The  
> following code correctly draws the vertical line from z=0 to z=2:
>
> line1 = Line[{{0, 0, 0}, {4, 4, 0}}];
> line2 = Line[{{0, 0, 0}, {0, 0, 2}}]
> Show[Graphics3D[{line1, line2}],
>  PlotRange -> {{-5, 5}, {-5, 5}, {0, 5}}, Axes -> True,
>  AxesLabel -> {x, y, z}]
>
> However, when I specify that the line is to be drawn with x and y  
> coordinates not equal to zero, the line is incorrectly drawn:
>
> line1 = Line[{{0, 0, 0}, {4, 4, 0}}];
> line2 = Line[{{1,1, 0}, {1,1, 2}}]
> Show[Graphics3D[{line1, line2}],
>  PlotRange -> {{-5, 5}, {-5, 5}, {0, 5}}, Axes -> True,
>  AxesLabel -> {x, y, z}]
>
> In 5.2, the lines are drawn correctly.
>



  • Prev by Date: Re: Slow Show/Graphics in v6.0
  • Next by Date: Re: Formula simplify for Solve
  • Previous by thread: Bug with 3D graphics lines
  • Next by thread: Re: Bug with 3D graphics lines