Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 4 years ago

Language

C++

Compiler

gcc HEAD 11.0.0 20210221 (experimental)

Options
Optimization
Boost 1.73.0
C++17
no pedantic

Author

anonymous

over 4 years ago

$ g++ prog.cc -O2 -march=native -I/opt/wandbox/boost-1.73.0/gcc-head/include -std=c++17
PASS	bg::intersection(a, b, ab_intersect) -> true
PASS	ab_intersect.size() -> 1
a area 1694 POLYGON((12227 4967,12238 4967,12238 4813,12227 4813,12227 4967))
b area 5687 POLYGON((12254 4947,12219 4982,12219 5020,12254 5055,12261 5055,12263 5055,12283 5055,12283 4947,12263 4947,12261 4947,12254 4947))
ab_intersect area 8 MULTIPOLYGON(((12234 4967,12238 4967,12238 4963,12234 4967)))
PASS	a_minus_b.size() -> 1
PASS	b_minus_a.size() -> 1
a_minus_b area 1686 MULTIPOLYGON(((12234 4967,12238 4963,12238 4813,12227 4813,12227 4967,12234 4967)))
b_minus_a area 5679 MULTIPOLYGON(((12238 4963,12238 4967,12234 4967,12219 4982,12219 5020,12254 5055,12261 5055,12263 5055,12283 5055,12283 4947,12263 4947,12261 4947,12254 4947,12238 4963)))
-- reduced a vs b: -------
PASS	bg::intersects(reduced, other) -> true
PASS	check.empty() -> true
check area 0 MULTIPOLYGON()
-- reduced b vs a: -------
PASS	bg::intersects(reduced, other) -> true
PASS	check.empty() -> true
check area 0 MULTIPOLYGON()
Exit Code:
0