Skip to content

martinez.union wrong response #90

@Efimster

Description

@Efimster

Hello,
martinez.union([[ [0,0],[10,0],[10,10],[0,10] ]], [[ [9,10],[21,9],[21,21],[9,21] ]])

produces
[[[ [0,0],[10,0],[10, 9.916666666666668],[21,9],[21,21],[9,21],[0,10] ]]]
Seems like should be
[[[ [0,0],[10,0],[10, 9.916666666666668],[21,9],[21,21],[9,21], [9,10] [0,10] ]]]
[9,10] point is missing

This is the result produced by polygon-clipping (https://github.com/mfogel/polygon-clipping) project:
[[ [ [ 0, 0 ],
[ 10, 0 ],
[ 10, 9.916666666666666 ],
[ 21, 9 ],
[ 21, 21 ],
[ 9, 21 ],
[ 9, 10 ],
[ 0, 10 ],
[ 0, 0 ] ] ]
]

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions