X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FOBJECT%2FSMESH_Object.cxx;h=a275a10b41731810d6b7c09ccddc43a2161fc98c;hb=a05b651f0439c6de2fcc620c97d99152690d9d77;hp=5d3e5622eaa6f6c7a84a617b7cfa16e83bbb639f;hpb=9b4762cb6bf22f3378c05d128b523e7e07e0773a;p=modules%2Fsmesh.git diff --git a/src/OBJECT/SMESH_Object.cxx b/src/OBJECT/SMESH_Object.cxx index 5d3e5622e..a275a10b4 100644 --- a/src/OBJECT/SMESH_Object.cxx +++ b/src/OBJECT/SMESH_Object.cxx @@ -634,33 +634,32 @@ void SMESH_VisualObjDef::buildElemPrs() std::vector aConnectivities; GetConnect(aNodesIter,aConnect); // Convertions connectivities from SMDS to VTK - if (anElem->IsPoly() && aNbNodes>3){ // POLYEDRE - if (MYDEBUG) cout << "SMESH:Polyedre IsPoly()="<IsPoly()<<"; aType="<0){ - for( vtkIdType aNodeId = 0; aNodeId < aNbNodes; aNodeId++ ) + if (aConnectivities.size() > 0) { + for (vtkIdType aNodeId = 0; aNodeId < aNbNodes; aNodeId++) SetId(anIdList,mySMDS2VTKNodes,aConnect,aNodeId,aConnectivities[aNodeId]); } break; @@ -673,7 +672,7 @@ void SMESH_VisualObjDef::buildElemPrs() } aConnectivity->InsertNextCell( anIdList ); - aCellTypesArray->InsertNextValue( getCellType( aType, anElem->IsPoly(),aNbNodes ) ); + aCellTypesArray->InsertNextValue( getCellType( aType, anElem->IsPoly(), aNbNodes ) ); iElem++; }