mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-02-06 20:34:18 +05:00
shorten code
This commit is contained in:
parent
a1802ee5a4
commit
6462277df0
@ -1598,11 +1598,9 @@ bool SMESH_subMesh::Evaluate(MapShapeNbElems& aResMap)
|
|||||||
bool ret = true;
|
bool ret = true;
|
||||||
|
|
||||||
if (_subShape.ShapeType() == TopAbs_VERTEX) {
|
if (_subShape.ShapeType() == TopAbs_VERTEX) {
|
||||||
std::vector<int> aVec(SMDSEntity_Last);
|
vector<int> aVec(SMDSEntity_Last,0);
|
||||||
for(int i= SMDSEntity_Node; i < SMDSEntity_Last; i++)
|
|
||||||
aVec[i] = 0;
|
|
||||||
aVec[SMDSEntity_Node] = 1;
|
aVec[SMDSEntity_Node] = 1;
|
||||||
aResMap.insert(std::make_pair(this,aVec));
|
aResMap.insert(make_pair(this,aVec));
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user