MCPcopy Create free account
hub / github.com/AngusJohnson/Clipper2 / main

Function main

CPP/Examples/SimpleClipping/SimpleClipping.cpp:27–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25}
26
27int main()
28{
29 // intersect a star and another modestly rotated star
30 Paths64 subject, clip, solution;
31 subject.push_back({ MakePath({200,100, 20,158, 130,4, 130,196, 20,42}) });
32 clip.push_back({ MakePath({196,126, 8,136, 154,16, 104,200, 38,24}) });
33 solution = Intersect(subject, clip, FillRule::NonZero);
34 DisplayAsSvgImage("Intersect Paths", FillRule::NonZero, subject, clip, solution);
35}
36

Callers

nothing calls this directly

Calls 3

MakePathFunction · 0.85
IntersectFunction · 0.85
DisplayAsSvgImageFunction · 0.70

Tested by

no test coverage detected