//---------------------------------------------------------------
//! Defines VISU enumeration of geometrical types
enum EGeometry {ePOINT1=1, eSEG2=102, eSEG3=103, eTRIA3=203,
- eQUAD4=204, eTRIA6=206,eQUAD8=208, eTETRA4=304,
- ePYRA5=305, ePENTA6=306, eHEXA8=308, eTETRA10=310,
- ePYRA13=313, ePENTA15=315, eHEXA20=320,
+ eQUAD4=204, eTRIA6=206,eQUAD8=208, eQUAD9=209, eTETRA4=304,
+ ePYRA5=305, ePENTA6=306, eHEXA8=308, eOCTA12=312, eTETRA10=310,
+ ePYRA13=313, ePENTA15=315, eHEXA20=320, eHEXA27=327,
ePOLYGONE=400, ePOLYEDRE=500, eNONE=-1};
case MED::eSEG3: return VISU::eSEG3;
case MED::eTRIA6: return VISU::eTRIA6;
case MED::eQUAD8: return VISU::eQUAD8;
+ case MED::eQUAD9: return VISU::eQUAD9;
+ case MED::eOCTA12: return VISU::eOCTA12;
case MED::eTETRA10: return VISU::eTETRA10;
case MED::eHEXA20: return VISU::eHEXA20;
+ case MED::eHEXA27: return VISU::eHEXA27;
case MED::ePENTA15: return VISU::ePENTA15;
case MED::ePYRA13: return VISU::ePYRA13;
case VISU::eSEG3: return MED::eSEG3;
case VISU::eTRIA6: return MED::eTRIA6;
case VISU::eQUAD8: return MED::eQUAD8;
+ case VISU::eQUAD9: return MED::eQUAD9;
+ case VISU::eOCTA12: return MED::eOCTA12;
case VISU::eTETRA10: return MED::eTETRA10;
case VISU::eHEXA20: return MED::eHEXA20;
+ case VISU::eHEXA27: return MED::eHEXA27;
case VISU::ePENTA15: return MED::ePENTA15;
case VISU::ePYRA13: return MED::ePYRA13;
anArray[7] = aConnect[7];
break;
#endif
+#if !(defined(VISU_USE_VTK_QUADRATIC)) && defined(VISU_ENABLE_QUADRATIC)
+ case MED::eQUAD9:
+ anArray[0] = aConnect[0];
+ anArray[2] = aConnect[1];
+ anArray[4] = aConnect[2];
+ anArray[6] = aConnect[3];
+
+ anArray[1] = aConnect[4];
+ anArray[3] = aConnect[5];
+ anArray[5] = aConnect[6];
+ anArray[7] = aConnect[7];
+ anArray[8] = aConnect[8];
+ break;
+#endif
#if (defined(VISU_USE_VTK_QUADRATIC)) && defined(VISU_ENABLE_QUADRATIC)
case MED::eTETRA10:
anArray[0] = aConnect[0];
#if (defined(VISU_USE_VTK_QUADRATIC)) && defined(VISU_ENABLE_QUADRATIC)
case MED::ePYRA13:
anArray[0] = aConnect[0];
+
anArray[1] = aConnect[3];
anArray[2] = aConnect[2];
anArray[3] = aConnect[1];
anArray[3] = aConnect[1];
anArray[4] = aConnect[4];
break;
+#if (defined(VISU_USE_VTK_QUADRATIC)) && defined(VISU_ENABLE_QUADRATIC)
+ case MED::eHEXA27:
+ anArray[0] = aConnect[0];
+ anArray[1] = aConnect[3];
+ anArray[2] = aConnect[2];
+ anArray[3] = aConnect[1];
+
+ anArray[4] = aConnect[4];
+ anArray[5] = aConnect[7];
+ anArray[6] = aConnect[6];
+ anArray[7] = aConnect[5];
+
+ anArray[8] = aConnect[11];
+ anArray[9] = aConnect[10];
+ anArray[10] = aConnect[9];
+ anArray[11] = aConnect[8];
+
+ anArray[12] = aConnect[15];
+ anArray[13] = aConnect[14];
+ anArray[14] = aConnect[13];
+ anArray[15] = aConnect[12];
+
+ anArray[16] = aConnect[16];
+ anArray[17] = aConnect[19];
+ anArray[18] = aConnect[18];
+ anArray[19] = aConnect[17];
+
+ anArray[20] = aConnect[21];
+ anArray[21] = aConnect[23];
+ anArray[22] = aConnect[24];
+ anArray[23] = aConnect[22];
+
+ anArray[24] = aConnect[20];
+ anArray[25] = aConnect[25];
+ anArray[26] = aConnect[26];
+ break;
+#endif
default:
for(int iNode = 0; iNode < aVNbNodes; iNode++)
anArray[iNode] = aConnect[iNode];