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

Bug with 3D graphics lines

  • To: mathgroup at smc.vnet.net
  • Subject: [mg80958] Bug with 3D graphics lines
  • From: chuck009 <dmilioto at comcast.com>
  • Date: Thu, 6 Sep 2007 05:30:01 -0400 (EDT)

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: Plot question
  • Next by Date: Re: Grid
  • Previous by thread: Re: Log of y-axis data?
  • Next by thread: Re: Bug with 3D graphics lines