From: apo Date: Fri, 22 Jul 2005 06:53:44 +0000 (+0000) Subject: Gauss Point reading. Next step X-Git-Tag: BR-D5-38-2003_D2005-12-09~153 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d592d340b70baa1b23cd76f4eaac72fa7785cb18;p=modules%2Fvisu.git Gauss Point reading. Next step --- diff --git a/src/CONVERTOR/VISU_MedConvertor.cxx b/src/CONVERTOR/VISU_MedConvertor.cxx index f9d9dbdb..7f9d742f 100644 --- a/src/CONVERTOR/VISU_MedConvertor.cxx +++ b/src/CONVERTOR/VISU_MedConvertor.cxx @@ -291,6 +291,8 @@ namespace{ if(aGaussIter != aGeom2Gauss.end()){ PGaussInfo aGaussInfo = aGaussIter->second; + aGauss->myGaussInfo = aGaussInfo; + aName = aGaussInfo->GetName(); aGauss->myName = aName; @@ -364,6 +366,7 @@ namespace{ const MED::TGeom2Size& theGeom2Size, VISU::TMEDValForTime& theValForTime) { + INITMSG(MYDEBUG,"InitGaussProfile"<myIsInitialized) return; + const PMeshInfo& aMeshInfo = theMesh->myMeshInfo; + PNodeInfo aNodeInfo = theMed->GetPNodeInfo(aMeshInfo); + + TEntity aVEntity = theMeshOnEntity.myEntity; + EEntiteMaillage aMEntity = VTKEntityToMED(aVEntity); + const TGeom2GaussSubMesh& aGeom2GaussSubMesh = aGaussMesh->myGeom2GaussSubMesh; const TTimeStampInfo& aTimeStampInfo = theTimeStampVal.GetTimeStampInfo(); const TGeom2Gauss& aGeom2Gauss = aTimeStampInfo.GetGeom2Gauss(); @@ -1136,13 +1147,41 @@ LoadGaussMesh(MED::TTimeStampVal& theTimeStampVal, TGeom2GaussSubMesh::const_iterator anIter2 = aGeom2GaussSubMesh.find(aVGeom); if(anIter2 != aGeom2GaussSubMesh.end()){ PMEDGaussSubMesh aGaussSubMesh = anIter2->second; + + PMEDGauss aGauss = aGaussSubMesh->myGauss; + MED::PGaussInfo aGaussInfo = aGauss->myGaussInfo; PMEDSubProfile aSubProfile = aGaussSubMesh->mySubProfile; + + if(aGaussInfo){ + MED::PCellInfo aCellInfo = theMed->GetPCellInfo(aMeshInfo, + aMEntity, + aMGeom); + TElemNum anElemNum = aSubProfile->mySubMeshID; + + MED::TGaussCoord aGaussCoord; + MED::GetGaussCoord3D(aGaussInfo, + aCellInfo, + aNodeInfo, + aGaussCoord, + anElemNum); + + TPoints& aPoints = aGaussSubMesh->myPoints; + + INITMSG(MYDEBUG, + "- aVGeom = "<