MCPcopy Index your code
hub / github.com/CadQuery/cadquery / _colIntArray

Function _colIntArray

cadquery/occ_impl/nurbs.py:75–82  ·  view source on GitHub ↗
(knots: NDArray)

Source from the content-addressed store, hash-verified

73
74
75def _colIntArray(knots: NDArray) -> TColStd_Array1OfInteger:
76
77 rv = TColStd_Array1OfInteger(1, len(knots))
78
79 for i, el in enumerate(knots):
80 rv.SetValue(i + 1, el)
81
82 return rv
83
84
85def vec2array(vecs: Sequence[Vector]) -> NDArray:

Callers 2

curveMethod · 0.85
surfaceMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected