From: eap Date: Thu, 19 Jul 2012 12:49:09 +0000 (+0000) Subject: shorten code X-Git-Tag: V6_6_0a1~259 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=20bed398e176300ca80c6a0b79984561db0ca539;p=modules%2Fsmesh.git shorten code --- diff --git a/src/DriverUNV/DriverUNV_W_SMDS_Mesh.cxx b/src/DriverUNV/DriverUNV_W_SMDS_Mesh.cxx index 2f37d9a8f..a33d10b38 100644 --- a/src/DriverUNV/DriverUNV_W_SMDS_Mesh.cxx +++ b/src/DriverUNV/DriverUNV_W_SMDS_Mesh.cxx @@ -174,52 +174,20 @@ Driver_Mesh::Status DriverUNV_W_SMDS_Mesh::Perform() { const SMDS_MeshVolume* anElem = anIter->next(); int aNbNodes = anElem->NbNodes(); - //MESSAGE("aNbNodes="<nodesIteratorToUNV(); + SMDS_ElemIteratorPtr aNodesIter = anElem->nodesIteratorToUNV(); if ( anElem->IsPoly() ) { continue; - // MESSAGE("anElem->IsPoly"); - // if ( const SMDS_VtkVolume* ph = - // dynamic_cast (anElem)) - // { - // aNbNodes = ph->NbUniqueNodes(); - // aNodesIter = ph->uniqueNodesIterator(); - // } } - int anId = -1; switch(aNbNodes) { - case 4: { - anId = 111; - break; - } - case 6: { - anId = 112; - break; - } - case 8: { - anId = 115; - break; - } - case 10: { - anId = 118; - break; - } - case 13: { - anId = 114; - break; - } - case 15: { - anId = 113; - break; - } + case 4: anId = 111; break; + case 6: anId = 112; break; + case 8: anId = 115; break; + case 10: anId = 118; break; + case 13: anId = 114; break; + case 15: anId = 113; break; case 20: - case 27: { - anId = 116; - aNbNodes = 20; - break; - } + case 27: anId = 116; aNbNodes = 20; break; default: continue; }