Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
main
Function · 0.85
Calls
2
break_at_second
Function · 0.85
split
Method · 0.80
Tested by
no test coverage detected