Skip to content

Commit

Permalink
use 'patch' for segment names and make unique names
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Sep 14, 2016
1 parent d8ebfe5 commit 268d7f4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Mod/MeshPart/App/Mesher.cpp
Expand Up @@ -271,13 +271,16 @@ Mesh::MeshObject* Mesher::createMesh() const
Mesh::MeshObject* meshdata = new Mesh::MeshObject();
meshdata->swap(kernel);
if (createSegm) {
int index = 0;
for (auto it : colorMap) {
Mesh::Segment segm(meshdata, false);
for (auto jt : it.second) {
segm.addIndices(meshSegments[jt]);
}
segm.save(true);
segm.setName("Group");
std::stringstream str;
str << "patch" << index++;
segm.setName(str.str());
meshdata->addSegment(segm);
}
}
Expand Down

0 comments on commit 268d7f4

Please sign in to comment.