[metapost] Cannot fill sector
Dirk Laurie
dpl at sun.ac.za
Sun Nov 14 10:35:08 CET 2010
On Sun, Nov 14, 2010 at 07:00:02AM +0200, Yasir Malik wrote:
>
> I'm having trouble filling a sector. Metapost does not return an error,
> but the "area" path is not filled. Here's my code:
> ..
> area = buildcycle(triangle, halfcirc);
> fill area withgreyscale .7;
>
At this point, I insert into xx.mp (my name for your code):
show area;
This causes MetaPost to print on xx.log what 'area' is.
It says:
> Path at line 23:
(43.79825,134.79443)..controls (43.79831,134.79456) and (43.79813,134.79465)
..(43.79807,134.79453)..controls (43.798,134.7944) and (43.79819,134.79431)
..cycle
So in my opinion MetaPost does fill the path, but the path is so
small that you can't see it.
'show' is very useful. I suggest that you put in quite a few
more of them earlier in your code so you can see at what point
MetaPost shows something you did not mean. That will make it easier
to fix the problem.
Dirk
More information about the metapost
mailing list