Skip to content

Commit

Permalink
py3: Arch: print fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
looooo committed Jan 17, 2017
1 parent 1a21a4b commit 2bc1162
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/Mod/Arch/ArchEquipment.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def createMeshView(obj,direction=FreeCAD.Vector(0,0,-1),outeronly=False,largesto
# 3. Getting the bigger mesh from the planar segments
if largestonly:
c = cleanmesh.getSeparateComponents()
#print c
#print(c)
cleanmesh = c[0]
segs = cleanmesh.getPlanarSegments(1)
meshes = []
Expand All @@ -142,7 +142,7 @@ def createMeshView(obj,direction=FreeCAD.Vector(0,0,-1),outeronly=False,largesto
shape = None
for f in cleanmesh.Facets:
p = Part.makePolygon(f.Points+[f.Points[0]])
#print p,len(p.Vertexes),p.isClosed()
#print(p,len(p.Vertexes),p.isClosed())
try:
p = Part.Face(p)
if shape:
Expand Down
4 changes: 2 additions & 2 deletions src/Mod/Arch/ArchSectionPlane.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def getCutShapes(objs,section,showHidden):
if o.Shape.isValid():
shapes.extend(o.Shape.Solids)
else:
print section.Label,": Skipping invalid object:",o.Label
print(section.Label,": Skipping invalid object:",o.Label)
else:
shapes.append(o.Shape)
cutface,cutvolume,invcutvolume = ArchCommands.getCutVolume(section.Shape.copy(),shapes)
Expand Down Expand Up @@ -188,7 +188,7 @@ def getSVG(section,allOn=False,renderMode="Wireframe",showHidden=False,showFill=
if showHidden:
svg += render.getHiddenSVG(linewidth="LWPlaceholder")
svg += '</g>\n'
# print render.info()
# print(render.info())

else:
# render using the Drawing module
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Arch/importOBJ.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def getIndices(shape,offset):
else:
fi = ""
for e in f.OuterWire.OrderedEdges:
#print e.Vertexes[0].Point,e.Vertexes[1].Point
#print(e.Vertexes[0].Point,e.Vertexes[1].Point)
v = e.Vertexes[0]
ind = findVert(v,shape.Vertexes)
if ind == None:
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Arch/importWebGL.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def getCameraData():
else:
result += "camera.position.set(0,0,1000);\n"
result += tab+"camera.lookAt( scene.position );\n"+tab
# print result
# print(result)
return result

def getObjectData(obj,wireframeMode=wireframeStyle):
Expand Down

0 comments on commit 2bc1162

Please sign in to comment.