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

Method SquaresTest

CSharp/Examples/ConsoleDemo/Main.cs:58–68  ·  view source on GitHub ↗
(bool test_polytree = false)

Source from the content-addressed store, hash-verified

56
57
58 public static void SquaresTest(bool test_polytree = false)
59 {
60 Path64 shape = Clipper.MakePath(new int[] { 0, 0, 10, 0, 10, 10, 0, 10 });
61 Paths64 subjects = FillImageWithShape(shape, 5);
62 Paths64 solution;
63 if (test_polytree)
64 solution = Polytree_Union(subjects, FillRule.NonZero);
65 else
66 solution = Clipper.Union(subjects, FillRule.NonZero);
67 DisplayAsSvgImage("Squares", FillRule.NonZero, subjects, null, solution);
68 }
69
70 public static void TrianglesTest(bool test_polytree = false)
71 {

Callers

nothing calls this directly

Calls 3

MakePathMethod · 0.80
UnionMethod · 0.80
DisplayAsSvgImageFunction · 0.50

Tested by

no test coverage detected