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

Function to_tuple

src/exterior-shell-extractor/utils.py:36–42  ·  view source on GitHub ↗
(eq)

Source from the content-addressed store, hash-verified

34
35
36def to_tuple(eq):
37 try:
38 n = len(eq)
39 except:
40 n = oc_len(eq)
41 eq = [eq.get(i) for i in range(n)]
42 return tuple(eq)
43
44
45to_double = lambda n: tuple(v.to_double() for v in to_tuple(n))

Callers 5

test_runMethod · 0.85
utils.pyFile · 0.85
dotFunction · 0.85
negFunction · 0.85
send_theme_dataMethod · 0.85

Calls 3

oc_lenFunction · 0.85
rangeFunction · 0.50
getMethod · 0.45

Tested by 1

test_runMethod · 0.68