Update examples.

This commit is contained in:
wo80
2022-03-05 20:49:49 +01:00
parent 4484c6c31a
commit 1383b57f0a
13 changed files with 115 additions and 44 deletions
+5 -3
View File
@@ -12,14 +12,14 @@
/// </summary>
public static class Example6
{
public static void Run()
public static bool Run()
{
// Generate the input geometry.
var polygon = new Polygon(8, true);
// Two intersecting rectangles.
var A = Generate.Rectangle(0.0, 4.0, 4.0, 0.0, 1);
var B = Generate.Rectangle(1.0, 5.0, 3.0, 1.0, 2);
var A = Generate.Rectangle(0.0, 0.0, 4.0, 4.0, 1);
var B = Generate.Rectangle(1.0, 1.0, 4.0, 4.0, 2);
polygon.Add(A);
polygon.Add(B);
@@ -46,6 +46,8 @@
// The xor of A and B.
var xor = mesh.Triangles.Where(t => t.Label == 1 || t.Label == 2);
return true;
}
}
}