Skip to content

Handedness issues #13

Description

@keijokapp

The README says that the output exterior paths are supposed to be CCW and holes CW. But that doesn't seem to be the case.

Here's an example:

Image

Intersecter#calculate outputs the segments ordered by their end events. That would be [AB, AC, BC] in this case. SegmentChainer then looks at myFill.above of the first segment (AB) and determines that the polygon is not filled so it erroneously outputs it clockwise. Note that if B were to the right of C then the first segment would be AC and SegmentChainer would treat the polygon as filled.

I'm trying to understand the intentions here: is Intersecter#calculate supposed to output the segments in a different order so that AC would be processed first?; or is SegmentChainer supposed to look at the direction of segments and use the correct fill flag?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions