# ---------------------------------------------------------------------------
def setReferencesMaillageFissure(self):
- self.referencesMaillageFissure = dict( \
- Entity_Quad_Quadrangle = 7392, \
- Entity_Quad_Hexa = 9888, \
- Entity_Node = 62571, \
- Entity_Quad_Edge = 833, \
- Entity_Quad_Triangle = 1048, \
- Entity_Quad_Tetra = 7723, \
- Entity_Quad_Pyramid = 452, \
- Entity_Quad_Penta = 408 \
- )
+ from salome.smesh import smeshBuilder
+ if smeshBuilder.NETGEN_VERSION_MAJOR < 6:
+ self.referencesMaillageFissure = dict( \
+ Entity_Quad_Quadrangle = 7392, \
+ Entity_Quad_Hexa = 9888, \
+ Entity_Node = 62571, \
+ Entity_Quad_Edge = 833, \
+ Entity_Quad_Triangle = 1048, \
+ Entity_Quad_Tetra = 7723, \
+ Entity_Quad_Pyramid = 452, \
+ Entity_Quad_Penta = 408 \
+ )
+ else:
+ self.referencesMaillageFissure = dict( \
+ Entity_Quad_Quadrangle = 7392, \
+ Entity_Quad_Hexa = 9888, \
+ Entity_Node = 62361, \
+ Entity_Quad_Edge = 833, \
+ Entity_Quad_Triangle = 983, \
+ Entity_Quad_Tetra = 7642, \
+ Entity_Quad_Pyramid = 452, \
+ Entity_Quad_Penta = 408 \
+ )
# ---------------------------------------------------------------------------
def setReferencesMaillageFissure(self):
- self.referencesMaillageFissure = dict( \
- Entity_Quad_Quadrangle = 7758, \
- Entity_Quad_Hexa = 10696, \
- Entity_Node = 71535, \
- Entity_Quad_Edge = 882, \
- Entity_Quad_Triangle = 1378, \
- Entity_Quad_Tetra = 10847, \
- Entity_Quad_Pyramid = 668, \
- Entity_Quad_Penta = 612 \
- )
+ from salome.smesh import smeshBuilder
+ if smeshBuilder.NETGEN_VERSION_MAJOR < 6:
+ self.referencesMaillageFissure = dict( \
+ Entity_Quad_Quadrangle = 7758, \
+ Entity_Quad_Hexa = 10696, \
+ Entity_Node = 71535, \
+ Entity_Quad_Edge = 882, \
+ Entity_Quad_Triangle = 1378, \
+ Entity_Quad_Tetra = 10847, \
+ Entity_Quad_Pyramid = 668, \
+ Entity_Quad_Penta = 612 \
+ )
+ else:
+ self.referencesMaillageFissure = dict( \
+ Entity_Quad_Quadrangle = 7758, \
+ Entity_Quad_Hexa = 10696, \
+ Entity_Node = 70936, \
+ Entity_Quad_Edge = 881, \
+ Entity_Quad_Triangle = 1300, \
+ Entity_Quad_Tetra = 10449, \
+ Entity_Quad_Pyramid = 668, \
+ Entity_Quad_Penta = 612 \
+ )
# ---------------------------------------------------------------------------
def setReferencesMaillageFissure(self):
- self.referencesMaillageFissure = dict( \
- Entity_Quad_Quadrangle = 4572, \
- Entity_Quad_Hexa = 5128, \
- Entity_Node = 45641, \
- Entity_Quad_Edge = 648, \
- Entity_Quad_Triangle = 1282, \
- Entity_Quad_Tetra = 11122, \
- Entity_Quad_Pyramid = 768, \
- Entity_Quad_Penta = 752 \
- )
+ from salome.smesh import smeshBuilder
+ if smeshBuilder.NETGEN_VERSION_MAJOR < 6:
+ self.referencesMaillageFissure = dict( \
+ Entity_Quad_Quadrangle = 4572, \
+ Entity_Quad_Hexa = 5128, \
+ Entity_Node = 45641, \
+ Entity_Quad_Edge = 648, \
+ Entity_Quad_Triangle = 1282, \
+ Entity_Quad_Tetra = 11122, \
+ Entity_Quad_Pyramid = 768, \
+ Entity_Quad_Penta = 752 \
+ )
+ else:
+ self.referencesMaillageFissure = dict( \
+ Entity_Quad_Quadrangle = 4572, \
+ Entity_Quad_Hexa = 5128, \
+ Entity_Node = 46393, \
+ Entity_Quad_Edge = 648, \
+ Entity_Quad_Triangle = 1286, \
+ Entity_Quad_Tetra = 11686, \
+ Entity_Quad_Pyramid = 768, \
+ Entity_Quad_Penta = 752 \
+ )