def __init__(self, mesh, geom=0):
Mesh_Algorithm.__init__(self)
if noBLSURFPlugin:
- print "Warning: BLSURFPlugin module unavailable"
+ print("Warning: BLSURFPlugin module unavailable")
if mesh.GetMesh().HasShapeToMesh():
self.Create(mesh, geom, self.algoType, LIBRARY)
else:
# <li>PreCAD - by pre-processing with PreCAD a CAD model</li></ul>
def SetTopology(self, way):
if way != PreCAD and way != FromCAD:
- print "Warning: topology mode %d is no longer supported. Mode FromCAD is used."%way
+ print("Warning: topology mode %d is no longer supported. Mode FromCAD is used."%way)
way = FromCAD
self.Parameters().SetTopology(way)
pass
for f in faces:
ids.append( self.mesh.geompyD.GetSubShapeID( self.mesh.geom, f ))
else:
- raise TypeError, \
- "Face of hyper-patch should be either ID or GEOM_Object, not %s" % type(face)
+ raise TypeError("Face of hyper-patch should be either ID or GEOM_Object, not %s" % type(face))
pass
hpl.append( ids )
pass
"""
Obsolete function. Use SetMinSize.
"""
- print "Warning: SetPhyMin is obsolete. Please use SetMinSize"
+ print("Warning: SetPhyMin is obsolete. Please use SetMinSize")
self.SetMinSize(theVal)
pass
"""
Obsolete function. Use SetMaxSize.
"""
- print "Warning: SetPhyMax is obsolete. Please use SetMaxSize"
+ print("Warning: SetPhyMax is obsolete. Please use SetMaxSize")
self.SetMaxSize(theVal)
pass
"""
Obsolete function. Use SetAngleMesh.
"""
- print "Warning: SetAngleMeshS is obsolete. Please use SetAngleMesh"
+ print("Warning: SetAngleMeshS is obsolete. Please use SetAngleMesh")
self.SetAngleMesh(theVal)
pass
"""
Obsolete function. Use SetAngleMesh.
"""
- print "Warning: SetAngleMeshC is obsolete. Please use SetAngleMesh"
+ print("Warning: SetAngleMeshC is obsolete. Please use SetAngleMesh")
self.SetAngleMesh(theVal)
pass
"""
Obsolete function. Use SetMinSize.
"""
- print "Warning: SetGeoMin is obsolete. Please use SetMinSize"
+ print("Warning: SetGeoMin is obsolete. Please use SetMinSize")
self.SetMinSize(theVal)
pass
"""
Obsolete function. Use SetMaxSize.
"""
- print "Warning: SetGeoMax is obsolete. Please use SetMaxSize"
+ print("Warning: SetGeoMax is obsolete. Please use SetMaxSize")
self.SetMaxSize(theVal)
pass
// BLSURFPluginGUI_StdWidget
//////////////////////////////////////////
-#include "ui_BLSURFPluginGUI_StdWidget_QTD.h"
+// WARNING: include order is important, do not swap !
#include "BLSURFPluginGUI_HypothesisCreator.h"
+#include "ui_BLSURFPluginGUI_StdWidget_QTD.h"
class BLSURFPLUGIN_GUI_EXPORT BLSURFPluginGUI_StdWidget : public QWidget,
public Ui::BLSURFPluginGUI_StdWidget_QTD