My initial reaction to your message is that this is far too big of a test case to hand over to someone else. Is there some way we can get you access to a machine that demonstrates<span></span> the problem so you can make something smaller?<div>
<br></div><div>Robby<br><br>On Monday, December 30, 2013, Neil Toronto wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I don't think there's anything I can look into. I can't duplicate the problem on my system, and Plot doesn't do anything platform-specific, so the bug is almost certainly in `pict', `racket/draw' or Cairo. Matthew?<br>
<br>
Sorry I wasn't clear on this earlier.<br>
<br>
(It could be that it's *possible* duplicate it on my system, and that it only shows up on the build machine because the default font is a different size, which gives the plot areas slightly different sizes, which gives the projected triangles slightly different vertices. I could look into that, but it seems unlikely. I use Plot a *lot* and have never seen this before.)<br>
<br>
If I were debugging it, I'd try to find the simplest plot that's missing a polygon. Here are the bad plots from the docs, rendered the way the docs do it (plot to a pict, then convert to a bitmap), with the number of samples easy to tweak:<br>
<br>
#lang racket<br>
<br>
(require pict plot/pict)<br>
<br>
(plot3d-samples 41) ; default is 41<br>
<br>
(parameterize ([plot-z-ticks (currency-ticks)])<br>
(pict->bitmap<br>
(plot3d-pict (contour-intervals3d (λ (x y) (- (sqr x) (sqr y)))<br>
-1 1 -1 1<br>
#:label "z")<br>
#:legend-anchor 'center)))<br>
<br>
(pict->bitmap<br>
(plot3d-pict (polar3d (λ (θ ρ) 1)<br>
#:color 2<br>
#:line-style 'transparent)<br>
#:altitude 25))<br>
<br>
<br>
I'd also try passing #:out-file "out.pdf" to `plot3d-pict' to see if the PDF back-end is afflicted.<br>
<br>
I don't know how worried to be about missing polygons. It could be anything from bad array management in Cairo (which could be serious) to a mostly harmless problem in the implementation of region culling or winding rules.<br>
<br>
Neil ⊥<br>
<br>
On 12/29/2013 09:39 PM, Robby Findler wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Neil: have you had time to look into this? If not, then I think we<br>
should just leave it for the next release. Please let us know what<br>
you're thinking about this one.<br>
<br>
Robby<br>
<br>
<br>
On Sat, Dec 21, 2013 at 4:13 PM, Neil Toronto <<a>neil.toronto@gmail.com</a><br>
<mailto:<a>neil.toronto@gmail.com</a>>> wrote:<br>
<br>
Some plots in the documentation are missing a polygon. I think it's<br>
platform-specific, because I can't reproduce the problem.<br>
<br>
Examples:<br>
<br>
First example plot in "1.5 Renderer and Plot Bounds" (look for a<br>
light green rectangle)<br>
<br>
file:///usr/racket-5.91.0.900/<u></u>__doc/plot/intro.html?q=plot#%<u></u>__28part._.Renderer_and_.Plot_<u></u>.__Bounds%29<br>
<br>
<br>
Last example plot in `plot-z-far-ticks' docs (look for a white hole<br>
under the "z" in the legend)<br>
<br>
<a href="http://plt.eecs.northwestern." target="_blank">http://plt.eecs.northwestern.</a>_<u></u>_edu/snapshots/current/doc/__<u></u>plot/ticks_and_transforms.__<u></u>html?q=plot-z-far-ticks#%__<u></u>28def._%28%28lib._plot%2Fmain.<u></u>__.rkt%29._plot-z-far-ticks%<u></u>29%__29<br>
<<a href="http://plt.eecs.northwestern.edu/snapshots/current/doc/plot/ticks_and_transforms.html?q=plot-z-far-ticks#%28def._%28%28lib._plot%2Fmain..rkt%29._plot-z-far-ticks%29%29" target="_blank">http://plt.eecs.northwestern.<u></u>edu/snapshots/current/doc/<u></u>plot/ticks_and_transforms.<u></u>html?q=plot-z-far-ticks#%<u></u>28def._%28%28lib._plot%2Fmain.<u></u>.rkt%29._plot-z-far-ticks%29%<u></u>29</a>><br>
<br>
<br>
Here's a program that renders one of the bad plots like Scribble<br>
does (I think):<br>
<br>
#lang racket<br>
<br>
(require pict plot/pict)<br>
<br>
(pict->bitmap<br>
(plot3d-pict (polar3d (λ (θ ρ) 1) #:color 2 #:line-style 'transparent)<br>
#:altitude 25))<br>
<br>
<br>
Neil ⊥<br>
<br>
<br>
_________________________<br>
Racket Developers list:<br>
<a href="http://lists.racket-lang.org/__dev" target="_blank">http://lists.racket-lang.org/_<u></u>_dev</a> <<a href="http://lists.racket-lang.org/dev" target="_blank">http://lists.racket-lang.org/<u></u>dev</a>><br>
<br>
<br>
</blockquote>
<br>
</blockquote></div>