mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-28 19:27:10 +00:00
black .
This commit is contained in:
@@ -440,12 +440,12 @@ class BIM_PT_sheets(Panel):
|
|||||||
ifc_file = tool.Ifc.get()
|
ifc_file = tool.Ifc.get()
|
||||||
ifc_annotations = ifc_file.by_type("IfcAnnotation")
|
ifc_annotations = ifc_file.by_type("IfcAnnotation")
|
||||||
drawingid = None
|
drawingid = None
|
||||||
|
|
||||||
for annotation in ifc_annotations:
|
for annotation in ifc_annotations:
|
||||||
Annotation_Name = annotation.Name.replace(",", "") # Remove commas
|
Annotation_Name = annotation.Name.replace(",", "") # Remove commas
|
||||||
if Annotation_Name == drawingname:
|
if Annotation_Name == drawingname:
|
||||||
drawingid = annotation.id()
|
drawingid = annotation.id()
|
||||||
break
|
break
|
||||||
|
|
||||||
if drawingid is not None:
|
if drawingid is not None:
|
||||||
drawing_button = row.row(align=True)
|
drawing_button = row.row(align=True)
|
||||||
|
|||||||
@@ -382,9 +382,9 @@ class PolylineDecorator:
|
|||||||
points.append(Vector((prop[i].x, prop[i].y, prop[i].z)))
|
points.append(Vector((prop[i].x, prop[i].y, prop[i].z)))
|
||||||
|
|
||||||
n = len(points) // 2
|
n = len(points) // 2
|
||||||
bottom_side_1 = [[i, (i + 1) % (n)] for i in range((n-1)//2)]
|
bottom_side_1 = [[i, (i + 1) % (n)] for i in range((n - 1) // 2)]
|
||||||
bottom_side_2 = [[i, (i + 1) % (n)] for i in range(n//2, n-1)]
|
bottom_side_2 = [[i, (i + 1) % (n)] for i in range(n // 2, n - 1)]
|
||||||
bottom_connections = [[i, n-i-1] for i in range(n//2)]
|
bottom_connections = [[i, n - i - 1] for i in range(n // 2)]
|
||||||
bottom_loop = bottom_connections + bottom_side_1 + bottom_side_2
|
bottom_loop = bottom_connections + bottom_side_1 + bottom_side_2
|
||||||
edges.extend(bottom_loop)
|
edges.extend(bottom_loop)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user