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
+3 -1
View File
@@ -11,7 +11,7 @@ namespace TriangleNet.Examples
/// </summary>
public class Example1
{
public static void Run(bool print = false)
public static bool Run(bool print = false)
{
// Generate points.
var points = Generate.RandomPoints(50, new Rectangle(0, 0, 100, 100));
@@ -26,6 +26,8 @@ namespace TriangleNet.Examples
var mesh = mesher.Triangulate(points);
if (print) SvgImage.Save(mesh, "example-1.svg", 500);
return true;
}
}
}