4 d = 0.02745732273553991
10 def sdf(delta_t, t, x, y, z, tx, ty, tz, block_id):
11 return yPlane.sDF(xc, yc - d * t, zc, x, y, z)
13 def grad_sdf(delta_t, t, x, y, z, tx, ty, tz, block_id):
14 return yPlane.gradSdf(xc, yc - d * t, zc, x, y, z)
16 def hess_sdf(delta_t, t, x, y, z, tx, ty, tz, block_id):
17 return yPlane.hessSdf(xc, yc - d * t, zc, x, y, z)
20 def sDF(xc, yc, zc, x, y, z):
21 return np.subtract(yc, y)
24 dx = np.zeros_like(x).reshape((-1, 1))
25 dy = np.full_like(y, -1).reshape((-1, 1))
26 dz = np.zeros_like(z).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)])