use 'patch' for segment names and make unique names
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user