v0.14.0
Public Member Functions | List of all members
sdf_flat.zPlane Class Reference

Public Member Functions

def sDF (xc, yc, zc, x, y, z)
 
def gradSdf (xc, yc, zc, x, y, z)
 
def hessSdf (xc, yc, zc, x, y, z)
 

Detailed Description

Definition at line 82 of file sdf_flat.py.

Member Function Documentation

◆ gradSdf()

def 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()

def 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  # xx, yx, zx, yy, zy, zz
103  return hess_array

◆ sDF()

def 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: