Skip to content

Commit 9a869ba

Browse files
committed
Merge branch 'main' of https://[email protected]/AngusJohnson/Clipper2.git
2 parents 925833b + 7dd02fa commit 9a869ba

File tree

2 files changed

+31
-2
lines changed

2 files changed

+31
-2
lines changed

CPP/Tests/TestPolytreeUnion.cpp

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,32 @@ TEST(Clipper2Tests, TestPolytreeUnion2) { // #987
4848

4949
ASSERT_EQ(solution.Count(), 1);
5050
EXPECT_EQ(solution[0]->Count(), 1);
51-
}
51+
}
52+
53+
TEST(Clipper2Tests, TestPolytreeUnion3)
54+
{
55+
Paths64 subject;
56+
subject.push_back(MakePath({
57+
-120927680, 590077597,
58+
-120919386, 590077307,
59+
-120919432, 590077309,
60+
-120919451, 590077309,
61+
-120919455, 590077310,
62+
-120099297, 590048669,
63+
-120928004, 590077608,
64+
-120902794, 590076728,
65+
-120919444, 590077309,
66+
-120919450, 590077309,
67+
-120919842, 590077323,
68+
-120922852, 590077428,
69+
-120902452, 590076716,
70+
-120902455, 590076716,
71+
-120912590, 590077070,
72+
11914491, 249689797
73+
}));
74+
75+
Clipper64 clipper;
76+
clipper.AddSubject(subject);
77+
Clipper2Lib::PolyTree64 solution;
78+
clipper.Execute(ClipType::Union, FillRule::EvenOdd, solution);
79+
}

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,9 @@ The <b>Clipper2</b> library performs **intersection**, **union**, **difference**
4949
### Ports to other languages
5050
| lang. | link |
5151
| ------ | ------ |
52-
| **WASM** | https://github.com/ErikSom/Clipper2-WASM/ |
5352
| **Java** | https://github.com/micycle1/Clipper2-java/ |
53+
| **TypeScript** | https://github.com/countertype/clipper2-ts |
5454
| **Kotlin** | https://github.com/Monkey-Maestro/clipper2-kotlin |
5555
| **golang** | https://github.com/epit3d/goclipper2 |
5656
| **Lua** | https://github.com/Ark223/Clipper2-Lua |
57+
| **WASM** | https://github.com/ErikSom/Clipper2-WASM/ |

0 commit comments

Comments
 (0)