Re: polygon objects are clipped to the plot area if specified with graph coordinates



On Jul 26, 8:38 pm, sfeam <sf...@xxxxxxxxxxxxxxxxxxxxx> wrote:

You are correct that the clipping rules for rectangles and for
polygons are inconsistent.

Rectangles:
        Clip only if all vertices are given in plot coordinates
Polygons:
        Clip unless all vertices are given in screen coordinates

Neither rule is perfect, but I agree that the rectangle rule makes
more sense for the use that you describe.  I'll see about changing
the polygon rule to match.

Maybe it would be best if all objects (rectangles, polygons, etc.) had
an option to set the clipping rule.

E.g. "set object 1 rect from x1,y1 to x2, y2 clip" or "... noclip"
If "clip" is given, the object would clip to the plot area. Default
would be "noclip".

I don't know if that's too much to ask...
(I'm anticipating a "feel free to implement it yourself" answer :))
.



Relevant Pages

  • Re: heap or stack?
    ... Speaking of Points, Lines, Rectangles and Polygons. ... Don't forged that when value type objects are kept in array ... > Is there some middle ground - perhaps an array of structs containing ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: PtInRegion
    ... I was thinking rectangles although you clearly said "polygons". ... The problem is that Windows CE does not ... regions used by SetWindowRegion from a bitmap containing a mask. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: looking for code
    ... > The polygons contain no slanted lines. ... Find one of these rectangles and complete it by extending the partial ... Repeat. ... I'm wondering, though, if there are some hidden requirements here. ...
    (comp.unix.programmer)
  • Re: Intersecting Polygons
    ... >just rectangles. ... The polygons can have 3 or more points/sides, up to infinite. ...
    (microsoft.public.vb.general.discussion)
  • Re: Intersecting Polygons
    ... I should have asked about the intersection of 2 POLYGONS, ... > just rectangles. ... The polygons can have 3 or more points/sides, ...
    (microsoft.public.vb.general.discussion)

Loading