aFilter3 = smesh.GetFilter(SMESH.VOLUME,SMESH.FT_BelongToGeom,'=',Sphere_1, SMESH.FT_LogicalNOT)
# Create mesh of Cut_2 with sd mode 1
-print "Create mesh of Cut_2 with sd mode 1"
+print("Create mesh of Cut_2 with sd mode 1")
Mesh_mghexa_sd1 = smesh.Mesh(Cut_2, "Mesh_mghexa_sd1")
# Create the 2D algo: MG-CADSurf with geometrical mesh
aFilter3 = smesh.GetFilter(SMESH.VOLUME,SMESH.FT_BelongToGeom,'=',Sphere_1, SMESH.FT_LogicalNOT)
# Create mesh of Cut_2 with sd mode 2
-print "Create mesh of Cut_2 with sd mode 2"
+print("Create mesh of Cut_2 with sd mode 2")
Mesh_mghexa_sd2 = smesh.Mesh(Cut_2, "Mesh_mghexa_sd2")
# Create the 2D algo: MG-CADSurf with geometrical mesh
aFilter3 = smesh.GetFilter(SMESH.VOLUME,SMESH.FT_BelongToGeom,'=',Sphere_1, SMESH.FT_LogicalNOT)
# Create mesh of Cut_2 with sd mode 3
-print "Create mesh of Cut_2 with sd mode 3"
+print("Create mesh of Cut_2 with sd mode 3")
Mesh_mghexa_sd3 = smesh.Mesh(Cut_2, "Mesh_mghexa_sd3")
# Create the 2D algo: MG-CADSurf with geometrical mesh
# if it is @c 0 (default), the algorithm is assigned to the main shape
def __init__(self, mesh, geom=0):
Mesh_Algorithm.__init__(self)
- if noHexoticPlugin: print "Warning: HexoticPlugin module unavailable"
+ if noHexoticPlugin: print("Warning: HexoticPlugin module unavailable")
self.Create(mesh, geom, MG_Hexa, "libHexoticEngine.so")
self.params = None
pass
def SetSizeMap(self, theObject, theSize):
AssureGeomPublished( self.mesh, theObject )
if theSize <= 0:
- raise ValueError, "The size must be > 0"
+ raise ValueError("The size must be > 0")
self.Parameters().SetSizeMap(theObject, theSize)
return self.Parameters()
# @param quad not documented
# @return hypothesis object
def MinMaxQuad(self, min=3, max=8, quad=True):
- print "WARNING: Function MinMaxQuad is deprecated, use SetMinMaxHexes instead"
+ print("WARNING: Function MinMaxQuad is deprecated, use SetMinMaxHexes instead")
return self.SetMinMaxHexes(min, max)
## Defines "ViscousLayers" hypothesis to give MG-Hexa parameters