MCPcopy Create free account
hub / github.com/Image-Py/imagepy / build_mesh

Function build_mesh

imagepy/core/myvi/util.py:78–83  ·  view source on GitHub ↗
(xs, ys, zs, c=(1,0,0))

Source from the content-addressed store, hash-verified

76 return vts, fs, ns, cs
77
78def build_mesh(xs, ys, zs, c=(1,0,0)):
79 rs, cs, fs = build_grididx(xs.shape[0], xs.shape[1])
80 vts = np.array([xs[rs, cs], ys[rs, cs], zs[rs,cs]]).astype(np.float32).T
81 ns = count_ns(vts, fs)
82 cs = (np.ones((len(vts), 3))*c).astype(np.float32)
83 return vts, fs, ns, cs
84
85def build_balls(os, rs, cs=(1,0,0)):
86 if isinstance(cs, tuple):

Callers

nothing calls this directly

Calls 2

build_grididxFunction · 0.85
count_nsFunction · 0.85

Tested by

no test coverage detected