|
| sDF (xc, yc, zc, x, y, z) |
|
| gradSdf (xc, yc, zc, x, y, z) |
|
| hessSdf (xc, yc, zc, x, y, z) |
|
Definition at line 82 of file sdf_flat.py.
◆ gradSdf()
sdf_flat.zPlane.gradSdf |
( |
| xc, |
|
|
| yc, |
|
|
| zc, |
|
|
| x, |
|
|
| y, |
|
|
| z ) |
Definition at line 86 of file sdf_flat.py.
86 def gradSdf(xc, yc, zc, x, y, z):
87 dx = np.zeros_like(x)
88 dy = np.zeros_like(y)
89 dz = np.ones_like(z)
90 dx = dx.reshape((-1,1))
91 dy = dy.reshape((-1,1))
92 dz = dz.reshape((-1,1))
93 grad_array = np.hstack([dx, dy, -dz])
94 return grad_array
95
◆ hessSdf()
sdf_flat.zPlane.hessSdf |
( |
| xc, |
|
|
| yc, |
|
|
| zc, |
|
|
| x, |
|
|
| y, |
|
|
| z ) |
Definition at line 96 of file sdf_flat.py.
96 def hessSdf(xc, yc, zc, x, y, z):
97 zeros = np.zeros_like(x)
98 zeros = zeros.reshape((-1,1))
99
100 hess_array = np.hstack([zeros, zeros, zeros, zeros, zeros, zeros])
101
102
103 return hess_array
◆ sDF()
sdf_flat.zPlane.sDF |
( |
| xc, |
|
|
| yc, |
|
|
| zc, |
|
|
| x, |
|
|
| y, |
|
|
| z ) |
Definition at line 83 of file sdf_flat.py.
83 def sDF(xc, yc, zc, x, y, z):
84 return zc - z
85
The documentation for this class was generated from the following file:
- users_modules/eshelbian_plasticity/examples/sdf_flat.py