Adjust to HEAD modifications

This commit is contained in:
apo 2005-12-29 06:15:02 +00:00
parent 61d19b5134
commit 546c2e40d8
2 changed files with 20 additions and 12 deletions

View File

@ -127,7 +127,7 @@ DriverMED_R_SMESHDS_Mesh
EBooleen anIsNodeNum = aNodeInfo->IsElemNum(); EBooleen anIsNodeNum = aNodeInfo->IsElemNum();
TInt aNbElems = aNodeInfo->GetNbElem(); TInt aNbElems = aNodeInfo->GetNbElem();
if(MYDEBUG) MESSAGE("Perform - aNodeInfo->GetNbElem() = "<<aNbElems<<"; anIsNodeNum = "<<anIsNodeNum); if(MYDEBUG) MESSAGE("Perform - aNodeInfo->GetNbElem() = "<<aNbElems<<"; anIsNodeNum = "<<anIsNodeNum);
DriverMED_FamilyPtr aFamily = myFamilies.begin()->second; DriverMED_FamilyPtr aFamily;
for(TInt iElem = 0; iElem < aNbElems; iElem++){ for(TInt iElem = 0; iElem < aNbElems; iElem++){
TCCoordSlice aCoordSlice = aNodeInfo->GetCoordSlice(iElem); TCCoordSlice aCoordSlice = aNodeInfo->GetCoordSlice(iElem);
double aCoords[3] = {0.0, 0.0, 0.0}; double aCoords[3] = {0.0, 0.0, 0.0};

View File

@ -110,50 +110,58 @@ namespace{
typedef double (SMDS_MeshNode::* TGetCoord)() const; typedef double (SMDS_MeshNode::* TGetCoord)() const;
typedef const char* TName; typedef const char* TName;
typedef const char* TUnit; typedef const char* TUnit;
TUnit aUnit[3] = {"m","m","m"};
// name length in a mesh must be equal to 16 :
// 1234567890123456
TName M = "m ";
TName X = "x ";
TName Y = "y ";
TName Z = "z ";
TUnit aUnit[3] = {M,M,M};
// 3 dim
TGetCoord aXYZGetCoord[3] = { TGetCoord aXYZGetCoord[3] = {
&SMDS_MeshNode::X, &SMDS_MeshNode::X,
&SMDS_MeshNode::Y, &SMDS_MeshNode::Y,
&SMDS_MeshNode::Z &SMDS_MeshNode::Z
}; };
TName aXYZName[3] = {"x","y","z"}; TName aXYZName[3] = {X,Y,Z};
// 2 dim
TGetCoord aXYGetCoord[2] = { TGetCoord aXYGetCoord[2] = {
&SMDS_MeshNode::X, &SMDS_MeshNode::X,
&SMDS_MeshNode::Y &SMDS_MeshNode::Y
}; };
TName aXYName[2] = {"x","y"}; TName aXYName[2] = {X,Y};
TGetCoord aYZGetCoord[2] = { TGetCoord aYZGetCoord[2] = {
&SMDS_MeshNode::Y, &SMDS_MeshNode::Y,
&SMDS_MeshNode::Z &SMDS_MeshNode::Z
}; };
TName aYZName[2] = {"y","z"}; TName aYZName[2] = {Y,Z};
TGetCoord aXZGetCoord[2] = { TGetCoord aXZGetCoord[2] = {
&SMDS_MeshNode::X, &SMDS_MeshNode::X,
&SMDS_MeshNode::Z &SMDS_MeshNode::Z
}; };
TName aXZName[2] = {"x","z"}; TName aXZName[2] = {X,Z};
// 1 dim
TGetCoord aXGetCoord[1] = { TGetCoord aXGetCoord[1] = {
&SMDS_MeshNode::X &SMDS_MeshNode::X
}; };
TName aXName[1] = {"x"}; TName aXName[1] = {X};
TGetCoord aYGetCoord[1] = { TGetCoord aYGetCoord[1] = {
&SMDS_MeshNode::Y &SMDS_MeshNode::Y
}; };
TName aYName[1] = {"y"}; TName aYName[1] = {Y};
TGetCoord aZGetCoord[1] = { TGetCoord aZGetCoord[1] = {
&SMDS_MeshNode::Z &SMDS_MeshNode::Z
}; };
TName aZName[1] = {"z"}; TName aZName[1] = {Z};
class TCoordHelper{ class TCoordHelper{