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

Function test_dm_2d

tests/test_nurbs.py:89–104  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

87
88
89def test_dm_2d():
90
91 uknots = np.array([0, 0, 0, 0, 0.25, 0.5, 0.75, 1, 1, 1, 1])
92 uparams = np.linspace(0, 1, 100)
93 uorder = 3
94
95 vknots = np.array([0, 0, 0, 0.5, 1, 1, 1])
96 vparams = np.linspace(0, 1, 100)
97 vorder = 2
98
99 res = designMatrix2D(uparams, vparams, uorder, vorder, uknots, vknots)
100
101 C = res.coo()
102
103 assert C.shape[0] == len(uparams)
104 assert C.shape[1] == (len(uknots) - uorder - 1) * (len(vknots) - vorder - 1)
105
106
107def test_dm():

Callers

nothing calls this directly

Calls 2

designMatrix2DFunction · 0.90
cooMethod · 0.80

Tested by

no test coverage detected