HP Forums

Full Version: FILLPOLY_P() Question.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have been trying to use FILLPOLY_P() to fill circles and other more complex shapes, and find that when I plot the points too close together, which obviously better defines the outer shape, then the fill is compromised, and can sometimes result in blank parts not actually filled, or lines outside of the shape, where a corner turns towards the centre.

Does anyone know what algorithm it follows, or how I might avoid badly filled shapes? I am being careful to ensure that the full outline is drawn, with no spaces, but you can take a look at the result and see what I mean.

EXPORT sham2()
    LOCAL COORD:={};
      FOR T FROM 0 TO 2*π STEP 0.009 DO
WAIT (-1);

You can see the example of the code above in the attached screen shot.
Reference URL's