X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FDriverUNV%2FDriverUNV_R_SMDS_Mesh.cxx;h=27576a613eaaf6abc26b65c4685a65a9c4613a9f;hb=3dcb8f1e04a352d7001ef4eb447939d695fcab62;hp=317b2182afc376fd0fa3af57c0620ff598e9f845;hpb=5d68554076bbca0e1e95fb0db215a6c2b84b6c54;p=modules%2Fsmesh.git diff --git a/src/DriverUNV/DriverUNV_R_SMDS_Mesh.cxx b/src/DriverUNV/DriverUNV_R_SMDS_Mesh.cxx index 317b2182a..27576a613 100644 --- a/src/DriverUNV/DriverUNV_R_SMDS_Mesh.cxx +++ b/src/DriverUNV/DriverUNV_R_SMDS_Mesh.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE // // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS @@ -39,7 +39,7 @@ using namespace std; #ifdef _DEBUG_ -static int MYDEBUG = 1; +static int MYDEBUG = 0; #else static int MYDEBUG = 0; #endif @@ -374,6 +374,9 @@ Driver_Mesh::Status DriverUNV_R_SMDS_Mesh::Perform() aRec.node_labels[6], aRec.node_labels[4], aRec.node_labels[2], + + aRec.node_labels[12], + aRec.node_labels[7], aRec.node_labels[5], aRec.node_labels[3], @@ -383,7 +386,6 @@ Driver_Mesh::Status DriverUNV_R_SMDS_Mesh::Perform() aRec.node_labels[11], aRec.node_labels[10], aRec.node_labels[9], - aRec.node_labels[12], aRec.label); break; @@ -435,6 +437,7 @@ Driver_Mesh::Status DriverUNV_R_SMDS_Mesh::Perform() const SMDS_MeshElement* aElement = myMesh->FindElement(aRec.ElementList[i]); if (aElement) { switch (aElement->GetType()) { + case SMDSAbs_Edge: if (!aEdgesGroup) { aEdgesGroup = (SMDS_MeshGroup*) myGroup->AddSubGroup(SMDSAbs_Edge); @@ -449,6 +452,7 @@ Driver_Mesh::Status DriverUNV_R_SMDS_Mesh::Perform() } aEdgesGroup->Add(aElement); break; + case SMDSAbs_Face: if (!aFacesGroup) { aFacesGroup = (SMDS_MeshGroup*) myGroup->AddSubGroup(SMDSAbs_Face); @@ -463,6 +467,7 @@ Driver_Mesh::Status DriverUNV_R_SMDS_Mesh::Perform() } aFacesGroup->Add(aElement); break; + case SMDSAbs_Volume: if (!aVolumeGroup) { aVolumeGroup = (SMDS_MeshGroup*) myGroup->AddSubGroup(SMDSAbs_Volume); @@ -477,6 +482,8 @@ Driver_Mesh::Status DriverUNV_R_SMDS_Mesh::Perform() } aVolumeGroup->Add(aElement); break; + + default:; } } }