Arch: lint bad indentation, superfluous formatting (#9310)

This commit is contained in:
luzpaz
2023-04-19 03:40:16 -04:00
committed by GitHub
parent c55cae44b9
commit fdca2d49f7
16 changed files with 84 additions and 89 deletions

View File

@@ -1899,7 +1899,7 @@ def getProfile(ifcfile,p):
elif isinstance(p.Edges[0].Curve,Part.Ellipse):
# extruded ellipse
profile = ifcbin.createIfcEllipseProfileDef("AREA",None,pt,p.Edges[0].Curve.MajorRadius,p.Edges[0].Curve.MinorRadius)
elif (checkRectangle(p.Edges)):
elif checkRectangle(p.Edges):
# arbitrarily use the first edge as the rectangle orientation
d = vec(p.Edges[0])
d.normalize()
@@ -2135,7 +2135,7 @@ def getRepresentation(
if obj.isDerivedFrom("Part::Feature"):
#if hasattr(obj,"Base") and hasattr(obj,"Additions")and hasattr(obj,"Subtractions"):
if False: # above is buggy. No way to duplicate shapes that way?
if obj.Base and (not obj.Additions) and not(obj.Subtractions):
if obj.Base and not obj.Additions and not obj.Subtractions:
if obj.Base.isDerivedFrom("Part::Feature"):
if obj.Base.Shape:
if obj.Base.Shape.Solids: