yellow = SALOMEDS.Color(1,1,0)
for i in dir(SMESH):
- if "Entity_" in i: print i
+ if "Entity_" in i: print(i)
entities = [("Tetra", SMESH.Entity_Tetra, blue),
("Pyramid", SMESH.Entity_Pyramid, red),
# 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 noHYBRIDPlugin: print "Warning: HYBRIDPlugin module unavailable"
+ if noHYBRIDPlugin: print("Warning: HYBRIDPlugin module unavailable")
self.Create(mesh, geom, self.algoType, "libHYBRIDEngine.so")
self.params = None
pass
for f in faces:
ids.append( self.mesh.geompyD.GetSubShapeID( self.mesh.geom, f ))
else:
- raise TypeError, \
- "Face should be either ID or GEOM_Object, not %s" % type(fid)
+ raise TypeError("Face should be either ID or GEOM_Object, not %s" % type(fid))
pass
self.Parameters().SetFacesWithLayers(ids)
if ids:
for f in faces:
ids.append( self.mesh.geompyD.GetSubShapeID( self.mesh.geom, f ))
else:
- raise TypeError, \
- "Face should be either ID or GEOM_Object, not %s" % type(fid)
+ raise TypeError("Face should be either ID or GEOM_Object, not %s" % type(fid))
pass
self.Parameters().SetFacesWithImprinting(ids)
if ids: