Re: Bug associated with Graphics3D???
- To: mathgroup at smc.vnet.net
- Subject: [mg105254] Re: [mg105210] Bug associated with Graphics3D???
- From: Louis Talman <talmanl at gmail.com>
- Date: Wed, 25 Nov 2009 06:13:55 -0500 (EST)
- References: <200911241050.FAA00829@smc.vnet.net> <83F85863-D526-4B1E-B1A9-62D3726E4885@me.com>
Well, sort of. Reversing the order of the Graphics3D objects introduces something else I don't want, which is a box of varying size. And if I transfer the PlotRange option to Pla[x] to control box size, the 5.1 issue reappears! I forgot to mention a couple of things. The issue pertains only to v7; the code works as it should in v6---at least on a PPC Mac. And I've verified the problem in v7 on both a PPC Mac running OS X 10.5.8 and on a Windoze box running Vista Home Premium. And tweaking ViewPoint doesn't help. (Haven't tried a major change---but the problem seems so sensitive to position that a little tweak in ViewPoint should've done something if lighting angles are the issue.) On Nov 24, 2009, at 7:19 PM, Syd Geraghty wrote: > Wow Lou, > > That was a very interesting artifact of Show[]. > > The key is to be found in the Possible Issues documentation for > Show[]. > > Show uses the options from the first graphic: > > So you first have to reverse the order of the shown functions!!!! > > Show[Pla[x], Bloid], x] ...... that fixes the 5.1 issue !! > > > > Do[Print[Show[Pla[x], Bloid], x], {x, 5.05, 5.15, > 0.025}]; works fine! > > > > Cheers .... Syd > > Syd Geraghty B.Sc, M.Sc. > > sydgeraghty at mac.com > > Mathematica 7.0.1.0 for Mac OS X x86 (64 - bit) (12th September 2009) > MacOS X V 10.6.1 Snow Leopard > MacBook Pro 2.33 GHz Intel Core 2 Duo 2GB RAM > > > > > > > > > > > > > > > > > > > > > On Nov 24, 2009, at 5:50 AM, Louis Talman wrote: > >> Can anyone explain why the disk that corresponds to x = 5.1 (see the >> last line of the code below) isn't red---like the others? >> >> ------------------------- >> >> Rho[Psi_] = 2/(1 - Cos[Psi]); >> >> Para = ParametricPlot3D[ >> Rho[Psi] {Cos[Psi], Sin[Psi] Cos[Theta], Sin[Psi] Sin[Theta]}, >> {Psi, Pi/3, Pi}, {Theta, 0, 2 Pi}, >> PlotStyle -> {Specularity[0.9], Opacity[0.3]}, Mesh -> None, >> Axes -> None, PlotRange -> {{-1.3, 6.7}, {-3.5, 3.5}, {-3.5, >> 3.5}}]; >> >> Focus = Graphics3D[{PointSize[0.015], Point[{0, 0, 0}]}]; >> >> Bloid = Show[Para, Focus]; >> >> Pla[x_] := ParametricPlot3D[ >> x Sec[Psi] { Cos[Psi], Sin[Psi] Cos[Theta], Sin[Psi] Sin[Theta]}, >> {Theta, 0, 2 Pi}, {Psi, 0, ArcTan[(2 Sqrt[3])/x]}, Mesh -> None, >> Axes -> None, PlotStyle -> {Red, Opacity[0.6]}]; >> >> Do[Print[Show[Bloid, Pla[x]]], {x, 4.8, 5.4, 0.1}]; >> >> --------------------------- >> >> It also happens when x = 3.5, but for no other values of x generated >> by {x, 3.0, 6.5, 0.1}. >> >> >> --Lou Talman >> Department of Mathematical and Computer Sciences >> Metropolitan State College of Denver >> >> <http://clem.mscd.edu/%7Etalmanl> >> >> >> > --Lou Talman Department of Mathematical and Computer Sciences Metropolitan State College of Denver <http://clem.mscd.edu/%7Etalmanl> --Apple-Mail-1--491773187 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable <html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; = -webkit-line-break: after-white-space; ">Well, sort of. Reversing = the order of the Graphics3D objects introduces something else I don't = want, which is a box of varying size. And if I transfer the = PlotRange option to Pla[x] to control box size, the 5.1 issue reappears! = <div><br></div><div>I forgot to mention a couple of things. = The issue pertains only to v7; the code works as it should in = v6---at least on a PPC Mac. And I've verified the problem in v7 on = both a PPC Mac running OS X 10.5.8 and on a Windoze box running Vista = Home Premium. And tweaking ViewPoint doesn't help. (Haven't = tried a major change---but the problem seems so sensitive to position = that a little tweak in ViewPoint should've done something if lighting = angles are the issue.)<br><div><br></div><div><br><div><div>On Nov 24, = 2009, at 7:19 PM, Syd Geraghty wrote:</div><br = class="Apple-interchange-newline"><blockquote type="cite"><div = style="word-wrap: break-word; -webkit-nbsp-mode: space; = -webkit-line-break: after-white-space; ">Wow = Lou,<div><br></div><div>That was a very interesting artifact of = Show[].</div><div><br></div><div>The key is to be found in <font = class="Apple-style-span" size="3"><span class="Apple-style-span" = style="font-size: 12px;">the Possible Issues documentation for = Show[].</span></font></div><div><font class="Apple-style-span" = size="3"><span class="Apple-style-span" style="font-size: = 12px;"><br></span></font></div><div><font class="Apple-style-span" = size="3"><span class="Apple-style-span" style="font-size: = 12px;"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: = 0px; margin-left: 0px; font: normal normal normal 10px/normal Verdana; = font-size: 12px; ">Show uses the options from the first = graphic:</div><div style="margin-top: 0px; margin-right: 0px; = margin-bottom: 0px; margin-left: 0px; font: normal normal normal = 10px/normal Verdana; "><br></div><div style="margin-top: 0px; = margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal = normal normal 10px/normal Verdana; "><font class="Apple-style-span" = face="Helvetica" size="3"><span class="Apple-style-span" = style="font-size: 12px;">So you first have to reverse the order of the = shown functions!!!!</span></font></div><div style="margin-top: 0px; = margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal = normal normal 10px/normal Verdana; "><font class="Apple-style-span" = face="Helvetica" size="3"><span class="Apple-style-span" = style="font-size: 12px;"><br></span></font></div><div = style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; = margin-left: 0px; font: normal normal normal 10px/normal Verdana; = "><font class="Apple-style-span" face="Helvetica" size="3"><span = class="Apple-style-span" style="font-size: 12px;">Show[Pla[x], = Bloid], x] ...... that fixes the 5.1 issue = !!</span></font></div><div style="margin-top: 0px; margin-right: 0px; = margin-bottom: 0px; margin-left: 0px; font: normal normal normal = 10px/normal Verdana; "><font class="Apple-style-span" face="Helvetica"= size="3"><span class="Apple-style-span" style="font-size: = 12px;"><br></span></font></div><div style="margin-top: 0px; = margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal = normal normal 10px/normal Verdana; "><font class="Apple-style-span" = face="Helvetica" size="3"><span class="Apple-style-span" = style="font-size: 12px;"><br></span></font></div><div = style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; = margin-left: 0px; font: normal normal normal 10px/normal Verdana; "><div = style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; = margin-left: 0px; font: normal normal normal 12px/normal Helvetica; "> = <br> Do[Print[Show[Pla[x], Bloid], x], {x, 5.05, 5.15, 0.025}]; = works = fine! </div></div><div style="margin-top: 0px; margin-right: 0px; = margin-bottom: 0px; margin-left: 0px; font: normal normal normal = 10px/normal Verdana; "><br></div><div style="margin-top: 0px; = margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal = normal normal 10px/normal Verdana; "><br></div><div style="margin-top: = 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: = normal normal normal 10px/normal Verdana; = "><br></div></span></font><div> <div style="word-wrap: break-word; = -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div = style="word-wrap: break-word; -webkit-nbsp-mode: space; = -webkit-line-break: after-white-space; "><div style="word-wrap: = break-word; -webkit-nbsp-mode: space; -webkit-line-break: = after-white-space; "><span class="Apple-style-span" = style="border-collapse: separate; color: rgb(0, 0, 0); font-family: = Helvetica; font-size: medium; font-style: normal; font-variant: normal; = font-weight: normal; letter-spacing: normal; line-height: normal; = orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; = widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; = -webkit-border-vertical-spacing: 0px; = -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: = auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: = break-word; -webkit-nbsp-mode: space; -webkit-line-break: = after-white-space; "><span class="Apple-style-span" = style="border-collapse: separate; color: rgb(0, 0, 0); font-family: = Helvetica; font-size: medium; font-style: normal; font-variant: normal; = font-weight: normal; letter-spacing: normal; line-height: normal; = orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; = widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; = -webkit-border-vertical-spacing: 0px; = -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: = auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: = break-word; -webkit-nbsp-mode: space; -webkit-line-break: = after-white-space; "><span class="Apple-style-span" = style="border-collapse: separate; color: rgb(0, 0, 0); font-family: = Helvetica; font-size: 13px; font-style: normal; font-variant: normal; = font-weight: normal; letter-spacing: normal; line-height: normal; = orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; = widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; = -webkit-border-vertical-spacing: 0px; = -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: = auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: = break-word; -webkit-nbsp-mode: space; -webkit-line-break: = after-white-space; "><span class="Apple-style-span" = style="border-collapse: separate; color: rgb(0, 0, 0); font-family: = Helvetica; font-size: 13px; font-style: normal; font-variant: normal; = font-weight: normal; letter-spacing: normal; line-height: normal; = orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; = widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; = -webkit-border-vertical-spacing: 0px; = -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: = auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: = break-word; -webkit-nbsp-mode: space; -webkit-line-break: = after-white-space; "><span class="Apple-style-span" = style="border-collapse: separate; color: rgb(0, 0, 0); font-family: = Helvetica; font-size: 13px; font-style: normal; font-variant: normal; = font-weight: normal; letter-spacing: normal; line-height: normal; = orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; = widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; = -webkit-border-vertical-spacing: 0px; = -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: = auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: = break-word; -webkit-nbsp-mode: space; -webkit-line-break: = after-white-space; "><span class="Apple-style-span" = style="border-collapse: separate; color: rgb(0, 0, 0); font-family: = Helvetica; font-size: 13px; font-style: normal; font-variant: normal; = font-weight: normal; letter-spacing: normal; line-height: normal; = orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; = widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; = -webkit-border-vertical-spacing: 0px; = -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: = auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: = break-word; -webkit-nbsp-mode: space; -webkit-line-break: = after-white-space; "><span class="Apple-style-span" = style="border-collapse: separate; color: rgb(0, 0, 0); font-family: = Helvetica; font-size: 12px; font-style: normal; font-variant: normal; = font-weight: normal; letter-spacing: normal; line-height: normal; = orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; = widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; = -webkit-border-vertical-spacing: 0px; = -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: = auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: = break-word; -webkit-nbsp-mode: space; -webkit-line-break: = after-white-space; "><span class="Apple-style-span" = style="border-collapse: separate; color: rgb(0, 0, 0); font-family: = Helvetica; font-size: 12px; font-style: normal; font-variant: normal; = font-weight: normal; letter-spacing: normal; line-height: normal; = orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; = widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; = -webkit-border-vertical-spacing: 0px; = -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: = auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: = break-word; -webkit-nbsp-mode: space; -webkit-line-break: = after-white-space; "><span class="Apple-style-span" = style="border-collapse: separate; color: rgb(0, 0, 0); font-family: = Helvetica; font-size: 12px; font-style: normal; font-variant: normal; = font-weight: normal; letter-spacing: normal; line-height: normal; = orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; = widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; = -webkit-border-vertical-spacing: 0px; = -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: = auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: = break-word; -webkit-nbsp-mode: space; -webkit-line-break: = after-white-space; "><span class="Apple-style-span" = style="border-collapse: separate; color: rgb(0, 0, 0); font-family: = Helvetica; font-size: 12px; font-style: normal; font-variant: normal; = font-weight: normal; letter-spacing: normal; line-height: normal; = orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; = widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; = -webkit-border-vertical-spacing: 0px; = -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: = auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: = break-word; -webkit-nbsp-mode: space; -webkit-line-break: = after-white-space; "><span class="Apple-style-span" = style="border-collapse: separate; color: rgb(0, 0, 0); font-family: = Helvetica; font-size: 12px; font-style: normal; font-variant: normal; = font-weight: normal; letter-spacing: normal; line-height: normal; = orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; = widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; = -webkit-border-vertical-spacing: 0px; = -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: = auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: = break-word; -webkit-nbsp-mode: space; -webkit-line-break: = after-white-space; "><span class="Apple-style-span" = style="border-collapse: separate; color: rgb(0, 0, 0); font-family: = Helvetica; font-size: 12px; font-style: normal; font-variant: normal; = font-weight: normal; letter-spacing: normal; line-height: normal; = orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; = widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; = -webkit-border-vertical-spacing: 0px; = -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: = auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: = break-word; -webkit-nbsp-mode: space; -webkit-line-break: = after-white-space; "><span class="Apple-style-span" = style="border-collapse: separate; color: rgb(0, 0, 0); font-family: = Helvetica; font-size: 12px; font-style: normal; font-variant: normal; = font-weight: normal; letter-spacing: normal; line-height: normal; = orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; = widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; = -webkit-border-vertical-spacing: 0px; = -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: = auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: = break-word; -webkit-nbsp-mode: space; -webkit-line-break: = after-white-space; "><span class="Apple-style-span" = style="border-collapse: separate; color: rgb(0, 0, 0); font-family: = Helvetica; font-size: 12px; font-style: normal; font-variant: normal; = font-weight: normal; letter-spacing: normal; line-height: normal; = orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; = widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; = -webkit-border-vertical-spacing: 0px; = -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: = auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: = break-word; -webkit-nbsp-mode: space; -webkit-line-break: = after-white-space; "><div><div>Cheers .... Syd</div><div><br></div><div = style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; = margin-left: 0px; font: normal normal normal 12px/normal Helvetica; = ">Syd Geraghty B.Sc, M.Sc.</div><div style="margin-top: 0px; = margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal = normal normal 12px/normal Helvetica; "><br = class="webkit-block-placeholder"></div><div style="margin-top: 0px; = margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal = normal normal 12px/normal Helvetica; "><a = href="mailto:sydgeraghty at mac.com">sydgeraghty at mac.com</a></div><div = style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; = margin-left: 0px; font: normal normal normal 12px/normal Helvetica; = "><br></div><div style="margin-top: 0px; margin-right: 0px; = margin-bottom: 0px; margin-left: 0px; font: normal normal normal = 12px/normal Helvetica; ">Mathematica 7.0.1.0 for Mac OS X x86 (64 - bit) = (12th September 2009)<br>MacOS X V 10.6.1 Snow Leopard </div><div = style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; = margin-left: 0px; font: normal normal normal 12px/normal Helvetica; = ">MacBook Pro 2.33 GHz Intel Core 2 Duo 2GB RAM</div><div><br = class="webkit-block-placeholder"></div></div></div></span><br = class="Apple-interchange-newline"></div></span><br = class="Apple-interchange-newline"></div></span><br = class="Apple-interchange-newline"></div></span><br = class="Apple-interchange-newline"></div></span><br = class="Apple-interchange-newline"></div></span><br = class="Apple-interchange-newline"></div></span><br = class="Apple-interchange-newline"></div></span><br = class="Apple-interchange-newline"></div></span><br = class="Apple-interchange-newline"></div></span><br = class="Apple-interchange-newline"></div></span><br = class="Apple-interchange-newline"></div></span><br = class="Apple-interchange-newline"></div></span><br = class="Apple-interchange-newline"></div></span><br = class="Apple-interchange-newline"></div><br = class="Apple-interchange-newline"></div><br = class="Apple-interchange-newline"></div><br = class="Apple-interchange-newline"><br = class="Apple-interchange-newline"> </div> <br><div><div>On Nov 24, = 2009, at 5:50 AM, Louis Talman wrote:</div><br = class="Apple-interchange-newline"><blockquote type="cite"><div>Can = anyone explain why the disk that corresponds to x = 5.1 (see the = <br>last line of the code below) isn't red---like the = others?<br><br>-------------------------<br><br>Rho[Psi_] = 2/(1 - = Cos[Psi]);<br><br>Para = ParametricPlot3D[<br> = Rho[Psi] {Cos[Psi], Sin[Psi] Cos[Theta], Sin[Psi] = Sin[Theta]},<br> {Psi, Pi/3, Pi}, {Theta, 0, 2 = Pi},<br> PlotStyle -> {Specularity[0.9], = Opacity[0.3]}, Mesh -> None,<br> Axes -> = None, PlotRange -> {{-1.3, 6.7}, {-3.5, 3.5}, {-3.5, = <br>3.5}}];<br><br>Focus = Graphics3D[{PointSize[0.015], = Point[{0, 0, 0}]}];<br><br>Bloid = Show[Para, Focus];<br><br>Pla[x_] = := ParametricPlot3D[<br> x Sec[Psi] { Cos[Psi], = Sin[Psi] Cos[Theta], Sin[Psi] Sin[Theta]},<br> {Theta, = 0, 2 Pi}, {Psi, 0, ArcTan[(2 Sqrt[3])/x]}, Mesh -> None,<br> = Axes -> None, PlotStyle -> {Red, = Opacity[0.6]}];<br><br>Do[Print[Show[Bloid, Pla[x]]], {x, 4.8, 5.4, = 0.1}];<br><br>---------------------------<br><br>It also happens when x = = 3.5, but for no other values of x generated <br>by {x, 3.0, = 6.5, 0.1}.<br><br><br>--Lou Talman<br> Department of = Mathematical and Computer Sciences<br> Metropolitan State = College of Denver<br><br> <<a = href="http://clem.mscd.edu/%7Etalmanl">http://clem.mscd.edu/%7Etalmanl</= a>><br><br><br><br></div></blockquote></div><br></div></div></blockquot= e></div><br></div><br><br><div apple-content-edited="true"> <span = class="Apple-style-span" style="border-collapse: separate; = border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; = font-size: 12px; font-style: normal; font-variant: normal; font-weight: = normal; letter-spacing: normal; line-height: normal; text-align: auto; = -khtml-text-decorations-in-effect: none; text-indent: 0px; = -apple-text-size-adjust: auto; text-transform: none; orphans: 2; = white-space: normal; widows: 2; word-spacing: 0px; "><div = style="word-wrap: break-word; -khtml-nbsp-mode: space; = -khtml-line-break: after-white-space; "><span class="Apple-style-span" = style="border-collapse: separate; border-spacing: 0px 0px; color: = rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: = normal; font-variant: normal; font-weight: normal; letter-spacing: = normal; line-height: normal; text-align: auto; = -khtml-text-decorations-in-effect: none; text-indent: 0px; = -apple-text-size-adjust: auto; text-transform: none; orphans: 2; = white-space: normal; widows: 2; word-spacing: 0px; "><div>--Lou = Talman</div><div> Department of Mathematical and Computer = Sciences</div><div> Metropolitan State College of = Denver</div><div><br></div><div> <<a = href="http://clem.mscd.edu/%7Etalmanl">http://clem.mscd.edu/%7Etalmanl</= a>></div><br class="Apple-interchange-newline"></span></div></span> = </div><br></div></body></html>= --Apple-Mail-1--491773187--
- References:
- Bug associated with Graphics3D???
- From: Louis Talman <talmanl@gmail.com>
- Bug associated with Graphics3D???