Skip to content

Commit

Permalink
Faster mesh-forced assemblies
Browse files Browse the repository at this point in the history
  • Loading branch information
Evil-Spirit committed Aug 31, 2017
1 parent 4afdad7 commit 76f81b4
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/groupmesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -357,10 +357,14 @@ void Group::GenerateShellAndMesh() {
// and corresponding slowdown.
outm.RemoveDegenerateTriangles();

// And make sure that the output mesh is vertex-to-vertex.
SKdNode *root = SKdNode::From(&outm);
root->SnapToMesh(&outm);
root->MakeMeshInto(&runningMesh);
if(srcg->meshCombine != CombineAs::ASSEMBLE) {
// And make sure that the output mesh is vertex-to-vertex.
SKdNode *root = SKdNode::From(&outm);
root->SnapToMesh(&outm);
root->MakeMeshInto(&runningMesh);
} else {
runningMesh.MakeFromCopyOf(&outm);
}

outm.Clear();
thism.Clear();
Expand Down

0 comments on commit 76f81b4

Please sign in to comment.