Skip to content

[Feature] Plot polygon #631

@ssteinbach

Description

@ssteinbach

Hi, love this library, thank you for all the great work. I'm trying to use the fill features to add some shading within plotted shapes and noticing that the fill doesn't seem to be as precise for the concave shapes I'm drawing.

See this image:

Image

The red line should be the boundary of the shape, and I was hoping to fill within the boundary. You can see that the fill is spilling out from the shape to make it more square (and it seems to be a different opacity).

Currently I'm drawing the outline as a clockwise loop. The fill is drawn using plotShaded with the exact same clockwise loop of points.

I was wondering if this is user error or a known issue or if there were any work arounds here? I could tesselate this shape by hand,

Thanks again!

Edit, also just noticed that the fill on the top doesn't line up either:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    prio:highHigh prioritystatus:todoTask identified but not startedtype:featNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions