From: eap Date: Wed, 26 Sep 2007 09:55:53 +0000 (+0000) Subject: PAL14858 (The Mesh Info Dialog Box is too slow) X-Git-Tag: V3_2_8rc1~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=88f8919b1a6772cbfa8c69d5447adf7a0ec53aea;p=modules%2Fsmesh.git PAL14858 (The Mesh Info Dialog Box is too slow) fix the previous integration --- diff --git a/src/SMDS/SMDS_Mesh.cxx b/src/SMDS/SMDS_Mesh.cxx index 3b1149070..1416ba66c 100644 --- a/src/SMDS/SMDS_Mesh.cxx +++ b/src/SMDS/SMDS_Mesh.cxx @@ -1057,15 +1057,16 @@ SMDS_MeshFace * SMDS_Mesh::createTriangle(const SMDS_MeshNode * node1, SMDS_MeshFace * face = new SMDS_FaceOfEdges(edge1,edge2,edge3); myFaces.Add(face); + myInfo.myNbTriangles++; return face; } else { SMDS_MeshFace * face = new SMDS_FaceOfNodes(node1,node2,node3); myFaces.Add(face); + myInfo.myNbTriangles++; return face; } - myInfo.myNbTriangles++; } /////////////////////////////////////////////////////////////////////////////// @@ -1089,15 +1090,16 @@ SMDS_MeshFace * SMDS_Mesh::createQuadrangle(const SMDS_MeshNode * node1, SMDS_MeshFace * face = new SMDS_FaceOfEdges(edge1,edge2,edge3,edge4); myFaces.Add(face); + myInfo.myNbQuadrangles++; return face; } else { SMDS_MeshFace * face = new SMDS_FaceOfNodes(node1,node2,node3,node4); myFaces.Add(face); + myInfo.myNbQuadrangles++; return face; } - myInfo.myNbTriangles++; } ///////////////////////////////////////////////////////////////////////////////