10 def sdf(delta_t, t, x, y, z, tx, ty, tz, block_id):
11 return zPlane.sDF(xc, yc, zc - d * t, x, y, z)
13 def grad_sdf(delta_t, t, x, y, z, tx, ty, tz, block_id):
14 return zPlane.gradSdf(xc, yc, zc - d * t, x, y, z)
16 def hess_sdf(delta_t, t, x, y, z, tx, ty, tz, block_id):
17 return zPlane.hessSdf(xc, yc, zc - d * t, x, y, z)
20 def sDF(xc, yc, zc, x, y, z):
21 return np.subtract(zc, z)
24 dx = np.zeros_like(x).reshape((-1, 1))
25 dy = np.zeros_like(y).reshape((-1, 1))
26 dz = np.full_like(z, -1).reshape((-1, 1))
27 return np.hstack([dx, dy, dz])
30 zeros = np.zeros_like(x).reshape((-1, 1))
31 return np.hstack([zeros
for _
in range(6)])