mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-18 17:20:37 +05:00
code shorten
This commit is contained in:
parent
c128018070
commit
8f17999ad4
@ -3725,26 +3725,7 @@ void ElementsOnShape::SetShape (const TopoDS_Shape& theShape,
|
|||||||
|
|
||||||
if ( !myMesh ) return;
|
if ( !myMesh ) return;
|
||||||
|
|
||||||
switch (myType)
|
myIds.ReSize( myMeshModifTracer.GetMesh()->GetMeshInfo().NbElements( myType ));
|
||||||
{
|
|
||||||
case SMDSAbs_All:
|
|
||||||
myIds.ReSize(myMesh->NbEdges() + myMesh->NbFaces() + myMesh->NbVolumes());
|
|
||||||
break;
|
|
||||||
case SMDSAbs_Node:
|
|
||||||
myIds.ReSize(myMesh->NbNodes());
|
|
||||||
break;
|
|
||||||
case SMDSAbs_Edge:
|
|
||||||
myIds.ReSize(myMesh->NbEdges());
|
|
||||||
break;
|
|
||||||
case SMDSAbs_Face:
|
|
||||||
myIds.ReSize(myMesh->NbFaces());
|
|
||||||
break;
|
|
||||||
case SMDSAbs_Volume:
|
|
||||||
myIds.ReSize(myMesh->NbVolumes());
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
myShapesMap.Clear();
|
myShapesMap.Clear();
|
||||||
addShape(myShape);
|
addShape(myShape);
|
||||||
|
Loading…
Reference in New Issue
Block a user