X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FDriverUNV%2FDriverUNV_R_SMDS_Mesh.cxx;fp=src%2FDriverUNV%2FDriverUNV_R_SMDS_Mesh.cxx;h=014690fbe273d3efd8519307d5d89b9857d58782;hb=9a5fe30fafcd40cfdbcdc1a4c6b8c1b1801ec328;hp=e635874ffd5439446b6b2819e980b7ff2a3bb536;hpb=a701eb4ca31fd7837158bdd72280b693c1d10114;p=modules%2Fsmesh.git diff --git a/src/DriverUNV/DriverUNV_R_SMDS_Mesh.cxx b/src/DriverUNV/DriverUNV_R_SMDS_Mesh.cxx index e635874ff..014690fbe 100644 --- a/src/DriverUNV/DriverUNV_R_SMDS_Mesh.cxx +++ b/src/DriverUNV/DriverUNV_R_SMDS_Mesh.cxx @@ -74,14 +74,13 @@ Driver_Mesh::Status DriverUNV_R_SMDS_Mesh::Perform() const TElementLab& aLabel = anIter->first; const TRecord& aRec = anIter->second; if(IsBeam(aRec.fe_descriptor_id)) { - if(aRec.fe_descriptor_id == 11) { - // edge with two nodes + switch ( aRec.fe_descriptor_id.size() ) { + case 2: // edge with two nodes anElement = myMesh->AddEdgeWithID(aRec.node_labels[0], aRec.node_labels[1], aLabel); - } - else { - // quadratic edge (with 3 nodes) + break; + case 3: // quadratic edge (with 3 nodes) anElement = myMesh->AddEdgeWithID(aRec.node_labels[0], aRec.node_labels[2], aRec.node_labels[1],