py3: Arch: mostly print-statements

7247937288be85fe217c2d57cdb96c9a666e4e28
00528f4b445fd851df53a79b4be6f1ff480f74d0
b7e3a874dbadbac1c1ecfade4b8676c15fdf25ee
This commit is contained in:
looooo
2017-03-02 09:24:29 +01:00
committed by wmayer
parent e81da82f79
commit 1e173b68a4
9 changed files with 26 additions and 24 deletions

View File

@@ -454,7 +454,7 @@ def getShapeFromMesh(mesh,fast=True,tolerance=0.001,flat=False,cut=True):
try:
f = Part.Face(Part.makePolygon(pts))
except:
print "getShapeFromMesh: error building face from polygon"
print("getShapeFromMesh: error building face from polygon")
#pass
else:
faces.append(f)
@@ -462,12 +462,12 @@ def getShapeFromMesh(mesh,fast=True,tolerance=0.001,flat=False,cut=True):
try:
solid = Part.Solid(shell)
except Part.OCCError:
print "getShapeFromMesh: error creating solid"
print("getShapeFromMesh: error creating solid")
else:
try:
solid = solid.removeSplitter()
except Part.OCCError:
print "getShapeFromMesh: error removing splitter"
print("getShapeFromMesh: error removing splitter")
#pass
return solid
@@ -495,11 +495,11 @@ def getShapeFromMesh(mesh,fast=True,tolerance=0.001,flat=False,cut=True):
if flat:
return se
except Part.OCCError:
print "getShapeFromMesh: error removing splitter"
print("getShapeFromMesh: error removing splitter")
try:
cp = Part.makeCompound(faces)
except Part.OCCError:
print "getShapeFromMesh: error creating compound"
print("getShapeFromMesh: error creating compound")
return None
else:
return cp
@@ -507,7 +507,7 @@ def getShapeFromMesh(mesh,fast=True,tolerance=0.001,flat=False,cut=True):
try:
solid = Part.Solid(se)
except Part.OCCError:
print "getShapeFromMesh: error creating solid"
print("getShapeFromMesh: error creating solid")
return se
else:
return solid