Clean and merge is faster
This commit is contained in:
parent
70e68db8e0
commit
36a52d25ac
2 changed files with 6 additions and 2 deletions
|
|
@ -89,7 +89,11 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
|
||||
// try to cut it up into multiple meshes
|
||||
progressStatus.Status = "Split".Localize();
|
||||
var discreetMeshes = CreateDiscreteMeshes.SplitVolumesIntoMeshes(selectedItem.Mesh, cancellationToken, (double progress0To1, string processingState) =>
|
||||
|
||||
var cleanMesh = selectedItem.Mesh.Copy(cancellationToken);
|
||||
cleanMesh.MergeVertices(.01);
|
||||
|
||||
var discreetMeshes = CreateDiscreteMeshes.SplitVolumesIntoMeshes(cleanMesh, cancellationToken, (double progress0To1, string processingState) =>
|
||||
{
|
||||
progressStatus.Progress0To1 = .5 + progress0To1 * .5;
|
||||
progressStatus.Status = processingState;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue