py3: FEM, put print in brackets and import print_function
This commit is contained in:
parent
5c0bcf611f
commit
3617fc365b
|
@ -20,6 +20,8 @@
|
|||
# * *
|
||||
# ***************************************************************************
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
__title__ = "FemMesh to Mesh converter"
|
||||
__author__ = "Frantisek Loeffelmann, Ulrich Brammer, Bernd Hahnebach"
|
||||
__url__ = "http://www.freecadweb.org"
|
||||
|
@ -131,7 +133,7 @@ def femmesh_2_mesh(myFemMesh, myResults=None):
|
|||
singleFaces.append(faceCodeList[actFaceIdx])
|
||||
actFaceIdx += 1
|
||||
else:
|
||||
print 'found a last Face: ', faceCodeList[actFaceIdx]
|
||||
print('found a last Face: ', faceCodeList[actFaceIdx])
|
||||
singleFaces.append(faceCodeList[actFaceIdx])
|
||||
actFaceIdx += 1
|
||||
|
||||
|
@ -172,5 +174,5 @@ def femmesh_2_mesh(myFemMesh, myResults=None):
|
|||
# print 'my 2. triangle: ', triangle
|
||||
|
||||
end_time = time.clock()
|
||||
print 'Mesh by surface search method: ', end_time - start_time
|
||||
print('Mesh by surface search method: ', end_time - start_time)
|
||||
return output_mesh
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
# * USA *
|
||||
# * *
|
||||
# ***************************************************************************
|
||||
from __future__ import print_function
|
||||
|
||||
__title__ = "FemToolsZ88"
|
||||
__author__ = "Bernd Hahnebach"
|
||||
|
@ -101,7 +102,7 @@ class FemToolsZ88(FemTools.FemTools):
|
|||
def setup_z88(self, z88_binary=None):
|
||||
from platform import system
|
||||
z88_std_location = FreeCAD.ParamGet("User parameter:BaseApp/Preferences/Mod/Fem/Z88").GetBool("UseStandardZ88Location")
|
||||
print z88_std_location
|
||||
print(z88_std_location)
|
||||
if z88_std_location:
|
||||
if system() == "Windows":
|
||||
z88_path = FreeCAD.getHomePath() + "bin/z88r.exe"
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
# * USA *
|
||||
# * *
|
||||
# ***************************************************************************
|
||||
from __future__ import print_function
|
||||
|
||||
__title__ = "FreeCAD Z88 Mesh reader and writer"
|
||||
__author__ = "Bernd Hahnebach"
|
||||
|
@ -390,7 +391,7 @@ def get_z88_element_type(femmesh, femelement_table=None):
|
|||
# in some cases lowest key in femelement_table is not [1]
|
||||
for elem in sorted(femelement_table):
|
||||
elem_length = len(femelement_table[elem])
|
||||
print elem_length
|
||||
print(elem_length)
|
||||
break # break after the first elem
|
||||
if FemMeshTools.is_solid_femmesh(femmesh):
|
||||
if femmesh.TetraCount == femmesh.VolumeCount:
|
||||
|
|
Loading…
Reference in New Issue
Block a user