MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / svg_to_coordlist

Function svg_to_coordlist

src/ifcopenshell-python/ifcopenshell/draw.py:487–488  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

485 return s[0:i]
486
487 def svg_to_coordlist(str):
488 return [[*map(float, s[1:].split(","))] for s in break_at_second("M", str).split(" ")[:-1]]
489
490 polies = [svg_to_coordlist(d) for d in polies]
491

Callers 1

mainFunction · 0.85

Calls 2

break_at_secondFunction · 0.85
splitMethod · 0.80

Tested by

no test coverage detected