boostorg / boostorg/polygon

boost::polygon::detail::resize creates invalid polygons on expansion

Open
#70 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
70
Forks
75
PR merge metrics
No merged PRs in 30d

Description

I have a regular polygon that is expanded via functions in boost::polygon / boost::polygon::polygon_set_data resize().

Expanding a polygon should result in a new outline (yellow) which nowhere touches the original polygon (green) and which nowhere comes closer to the original polygon outline than the expansion size:

![clip_ok](https://user-images.githubusercontent.com/5111091/140699025-daecbb74-1593-4e9f-af95-0ee0c088cf0b.png)

Unfortunately this is not the result I get with boost::polygon. Here the new ouline cuts the original one:

![clip_boost](https://user-images.githubusercontent.com/5111091/140699079-af29c55b-5d23-4d24-9454-51a98c98b35a.png)

In other words: the result is damaged and wrong even to its own specification. This happens with Boost 1.77.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.