From 05ee75493527b110d4923af5d0b79325d64e2b37 Mon Sep 17 00:00:00 2001 From: Lars Brubaker Date: Thu, 2 Dec 2021 08:49:09 -0800 Subject: [PATCH] Refactoring --- MatterControlLib/DesignTools/SupportGenerator.cs | 4 ++-- Submodules/agg-sharp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/MatterControlLib/DesignTools/SupportGenerator.cs b/MatterControlLib/DesignTools/SupportGenerator.cs index b92cbb87a..2c758e221 100644 --- a/MatterControlLib/DesignTools/SupportGenerator.cs +++ b/MatterControlLib/DesignTools/SupportGenerator.cs @@ -131,7 +131,7 @@ namespace MatterHackers.MatterControl.DesignTools } } - public static ITraceable CreateTraceData(FaceList faceList, List vertexList, int maxRecursion = int.MaxValue) + public static ITraceable CreateTraceData(FaceList faceList, List vertexList, BvhCreationOptions bvhCreationOptions = BvhCreationOptions.FavorFastTracing) { var allPolys = new List(); @@ -140,7 +140,7 @@ namespace MatterHackers.MatterControl.DesignTools allPolys.Add(new TriangleShape(vertexList[face.v0], vertexList[face.v1], vertexList[face.v2], null)); } - return BoundingVolumeHierarchy.CreateNewHierachy(allPolys, maxRecursion); + return BoundingVolumeHierarchy.CreateNewHierachy(allPolys, bvhCreationOptions); } public Task Create(IProgress progress, CancellationToken cancellationToken) diff --git a/Submodules/agg-sharp b/Submodules/agg-sharp index 0d19f0300..95008e620 160000 --- a/Submodules/agg-sharp +++ b/Submodules/agg-sharp @@ -1 +1 @@ -Subproject commit 0d19f03006c3716dad9c0b3677ff0c64969dfa85 +Subproject commit 95008e620632d616736d75932c2fe0a0d78e1621