Refactoring

This commit is contained in:
Lars Brubaker 2021-12-02 08:49:09 -08:00
parent 35ef85b73e
commit 05ee754935
2 changed files with 3 additions and 3 deletions

View file

@ -131,7 +131,7 @@ namespace MatterHackers.MatterControl.DesignTools
}
}
public static ITraceable CreateTraceData(FaceList faceList, List<Vector3Float> vertexList, int maxRecursion = int.MaxValue)
public static ITraceable CreateTraceData(FaceList faceList, List<Vector3Float> vertexList, BvhCreationOptions bvhCreationOptions = BvhCreationOptions.FavorFastTracing)
{
var allPolys = new List<ITraceable>();
@ -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<ProgressStatus> progress, CancellationToken cancellationToken)

@ -1 +1 @@
Subproject commit 0d19f03006c3716dad9c0b3677ff0c64969dfa85
Subproject commit 95008e620632d616736d75932c2fe0a0d78e1621