Arch: lint bad indentation, superfluous formatting (#9310)
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user