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

Function _colRealArray

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

Source from the content-addressed store, hash-verified

63
64
65def _colRealArray(knots: NDArray) -> TColStd_Array1OfReal:
66
67 rv = TColStd_Array1OfReal(1, len(knots))
68
69 for i, el in enumerate(knots):
70 rv.SetValue(i + 1, el)
71
72 return rv
73
74
75def _colIntArray(knots: NDArray) -> TColStd_Array1OfInteger:

Callers 2

curveMethod · 0.85
surfaceMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected