From: enk Date: Tue, 29 Mar 2005 07:52:47 +0000 (+0000) Subject: Corrected for high performance X-Git-Tag: smh_merge_poly~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b890ae715a136945882549faadcccd3a4241647d;p=modules%2Fvisu.git Corrected for high performance --- diff --git a/src/CONVERTOR/VISU_Convertor_impl.cxx b/src/CONVERTOR/VISU_Convertor_impl.cxx index 5fcb2f9e..4fcb0077 100644 --- a/src/CONVERTOR/VISU_Convertor_impl.cxx +++ b/src/CONVERTOR/VISU_Convertor_impl.cxx @@ -207,6 +207,7 @@ namespace{ aCoordHelperPtr->GetCoord(i,eY), aCoordHelperPtr->GetCoord(i,eZ)); theMesh->myPoints = aPoints; + aPoints->Delete(); } theStorage->SetPoints(aPoints); } diff --git a/src/CONVERTOR/VISU_MedConvertor.cxx b/src/CONVERTOR/VISU_MedConvertor.cxx index 72e5eb6a..16a220d2 100644 --- a/src/CONVERTOR/VISU_MedConvertor.cxx +++ b/src/CONVERTOR/VISU_MedConvertor.cxx @@ -681,36 +681,37 @@ VISU_MedConvertor::LoadCellsOnEntity(const MED::PWrapper& theMed, { PPolyedreInfo aPolyedreInfo = theMed->GetPPolyedreInfo(aMeshInfo,aMEntity,aGeom); TInt aNbElem = aPolyedreInfo->GetNbElem(); + + int aMNbNodes = aPolyedreInfo->GetNbConn(); + vector aConnect(aMNbNodes); + aConnect = aPolyedreInfo->GetConnectivite(); if(!isCellsLoaded){ VISU::TMeshOnEntityImpl::TConnForCellType& aConnForPolyedreType = aCellsConn[aVTKGeomType]; aConnForPolyedreType.resize(aNbElem); - int aMNbNodes = aPolyedreInfo->GetNbConn(); - - vector aConnect(aMNbNodes); vector aFacesIndex = aPolyedreInfo->GetFacesIndex(); vector aIndex = aPolyedreInfo->GetIndex(); for (int iElem = 0; iElem < aNbElem; iElem++) { + set aArrayNew; VISU::TMeshOnEntityImpl::TConnect& anArray = aConnForPolyedreType[iElem]; - int aNbConn = aPolyedreInfo->GetNbConn(iElem); - - anArray.resize(aNbConn); - - aConnect = aPolyedreInfo->GetConnectivite(); int aInd1 = aIndex[iElem]-1; int aInd2 = aIndex[iElem+1]-2; - int k = 0; for (int i=aInd1;i<=aInd2;i++){ - for (int j=aFacesIndex[i]-1;j