mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 14:41:25 +00:00
Black
This commit is contained in:
@@ -447,10 +447,12 @@ def main(
|
|||||||
if i == -1:
|
if i == -1:
|
||||||
return s
|
return s
|
||||||
else:
|
else:
|
||||||
warnings.warn('Polygons with holes are not supported')
|
warnings.warn("Polygons with holes are not supported")
|
||||||
return s[0:i]
|
return s[0:i]
|
||||||
|
|
||||||
polies = [[[*map(float, s[1:].split(","))] for s in break_at_second('M', d).split(" ")[:-1]] for d in polies]
|
polies = [
|
||||||
|
[[*map(float, s[1:].split(","))] for s in break_at_second("M", d).split(" ")[:-1]] for d in polies
|
||||||
|
]
|
||||||
|
|
||||||
def create_poly(b):
|
def create_poly(b):
|
||||||
p = ifcopenshell.ifcopenshell_wrapper.polygon_2()
|
p = ifcopenshell.ifcopenshell_wrapper.polygon_2()
|
||||||
|
|||||||
Reference in New Issue
Block a user