From "Matej Cepl" < XXXX@XXXXX.COM >:
XXXX@XXXXX.COM ...
> Hi,
>
> sorry for slightly off-topic post, but I hope that MetaPost
> questions are at least slightly appropriate in this group as
> well. I have the following MP document (it is exported from
> drawing program, so it coordinates are not very nice). For some
> mysterious reason, path p3 is not filled (no errors or warnings
> are shown). Can anybody find a reason why (with previous version
> of the very same file -- with different ellipsoids -- it worked)?
>
> It is probably something trivial, but I really don't see anything
> wrong with this source.
>
> Thanks in advance for any hint,
>
> Matej Cepl
>
> % Converted from PostScript(TM) to MetaPost by pstoedit
> % MetaPost backend contributed by Scott Pakin < XXXX@XXXXX.COM >
> % pstoedit is Copyright (C) 1993 - 2001 Wolfgang Glunz < XXXX@XXXXX.COM >
>
> % Generate structured PostScript
> prologues := 1;
>
> % Display a given string with its *baseline* at a given location
> % and with a given rotation angle
> vardef showtext(expr origin)(expr angle)(expr string) =
> draw string infont defaultfont scaled defaultscale
> rotated angle shifted origin;
> enddef;
>
> beginfig(1);
> path p[];
> pickup pencircle scaled 1bp;
> defaultfont := "sldr8t";
> defaultscale := 10/fontsize defaultfont;
> linecap := butt;
> linejoin := mitered;
> draw (280.11,637.4)..controls (280.11,602.942) and
> (241.587,575.008)..(194.066,575.008)..controls (146.545,575.008) and
> (108.022,602.942)..(108.022,637.4)..controls (108.022,671.858) and
> (146.545,699.792)..(194.066,699.792)..controls (241.587,699.792) and
> (280.11,671.858)..(280.11,637.4) dashed evenly;
> p1 := (227.886,626.456)..controls (227.886,606.214) and
> (209.216,589.804)..(186.186,589.804)..controls (163.156,589.804) and
> (144.485,606.214)..(144.485,626.456)..controls (144.485,646.698) and
> (163.156,663.108)..(186.186,663.108)..controls (209.216,663.108) and
> (227.886,646.698)..(227.886,626.456);
> draw p1;
> showtext ((161.69,632.054), 0, "Rational");
> showtext ((160.194,620.084), 0, "behavior");
> showtext ((207.467,677.244), 0, "Arational");
> showtext ((209.075,666.011), 0, "behavior");
> p2 := (270.497,644.146)..controls (275.209,635.693) and (266.232,621.706)
> ..(250.446,612.906)
> ..controls (234.66,604.107) and (218.042,603.826)..(213.33,612.279)
> ..controls (208.618,620.731) and (217.596,634.718)..(233.382,643.518)
> ..controls (249.168,652.318) and (265.785,652.599)..(270.497,644.146);
> p3 := buildcycle(p1,p2);
> pickup pencircle scaled 1.5bp;
> % WHAT'S UP???
> fill p3 withcolor .5white;
> draw p2;
> showtext ((232.907,621.817), 29.1374, "Trust");
> endfig;
> end
p1:=subpath(-length p1 div 2,length p1 div 2) of (p1..cycle);
p3:= buildcycle(p1,p2);
Your path p1 is not a cycle; p1 starts and ends with the same point, a point of
the expected buildcycle p3.
~pth