interesection between segment and ring not defined
- Dominant language
- C++
- Stars
- 517
- Forks
- 232
- PR merge metrics
- No merged PRs in 30d
Description
The intersection operation is not defined between a segment and a ring. It is however defined between a linestring and a ring. Is this a feature or bug? What am I missing here?
```
#include
namespace bg = boost::geometry;
int main()
{
using point = bg::model::point;
using segment = bg::model::segment;
using ring = bg::model::ring;
ring r = {{0,0},{0,1},{1,1}, {1,0},{0,0}};
segment s = {{-1,-1}, {2,2}};
std::vector points;
bg::intersection(s,r,points);
return 0;
}
```
results in
```
error: static_assert failed due to requirement 'boost::geometry::detail::static_assert_check>>::value' "Not or not yet implemented for this Geometry type."
```
try it on godbolt: https://godbolt.org/z/7sPnhcKWj
Contributor guide
Assessment
This issue has not been assessed yet.