MCPcopy Create free account
hub / github.com/Meshcapade/difflocks / B_spline_interpolate

Function B_spline_interpolate

utils/strand_util.py:142–146  ·  view source on GitHub ↗
(X,num)

Source from the content-addressed store, hash-verified

140
141
142def B_spline_interpolate(X,num):
143 tck, u = splprep([X[:, 0], X[:, 1], X[:, 2]], s=0., k=3)
144 U = np.linspace(0, 1, num)
145 new_points = splev(U, tck)
146 return new_points
147
148def get_strand_length(strand):
149 delta = strand[:-1] - strand[1:]

Callers 1

load_strandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected