Skip to content

Add dedicated polygon rasterizing metho #5

@xulman

Description

@xulman

... into PlanarShapesRasterizer as a new (utility) method, e.g. by implementing the "scanline" method (goes along x-axis from a border to a border).

Currently, the rasterization happens stupidly by sweeping the bounding box of the polygon and querying isPointInShape().
So, it a) scans more pixels it needs, and b) the query does not benefit from the knowledge obtained during previous query.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions