Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/CadQuery/cadquery
/ vec2array
Function
vec2array
cadquery/occ_impl/nurbs.py:85–87 ·
view source on GitHub ↗
(vecs: Sequence[Vector])
Source
from the content-addressed store, hash-verified
83
84
85
def
vec2array(vecs: Sequence[Vector]) -> NDArray:
86
87
return
np.array([v.toTuple()
for
v in vecs])
88
89
90
def
array2vec(data: NDArray) -> list[Vector]:
Callers
1
test_nurbs.py
File · 0.90
Calls
1
toTuple
Method · 0.45
Tested by
no test coverage detected