MCPcopy Create free account
hub / github.com/CadQuery/cadquery / _colPtsArray2

Function _colPtsArray2

cadquery/occ_impl/nurbs.py:50–62  ·  view source on GitHub ↗
(pts: NDArray)

Source from the content-addressed store, hash-verified

48
49
50def _colPtsArray2(pts: NDArray) -> TColgp_Array2OfPnt:
51
52 assert pts.ndim == 3
53
54 nu, nv, _ = pts.shape
55
56 rv = TColgp_Array2OfPnt(1, len(pts), 1, len(pts[0]))
57
58 for i, row in enumerate(pts):
59 for j, pt in enumerate(row):
60 rv.SetValue(i + 1, j + 1, gp_Pnt(*pt))
61
62 return rv
63
64
65def _colRealArray(knots: NDArray) -> TColStd_Array1OfReal:

Callers 1

surfaceMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected