v0.13.2
Loading...
Searching...
No Matches
Classes | Functions | Variables
sdf Namespace Reference

Classes

class  CylinderZ
 
class  Sphere
 
class  yPlane
 

Functions

def sdf (t, x, y, z, tx, ty, tz)
 
def grad_sdf (t, x, y, z, tx, ty, tz)
 
def hess_sdf (t, x, y, z, tx, ty, tz)
 

Variables

int r = 1
 

Function Documentation

◆ grad_sdf()

def sdf.grad_sdf (   t,
  x,
  y,
  z,
  tx,
  ty,
  tz 
)

Definition at line 17 of file sdf.py.

17def grad_sdf(t, x, y, z, tx, ty, tz):
18 #return Sphere.gradSdf(xc, yc, zc, x, y, z)
19 return CylinderZ.gradSdf(0, -0.5-r, x, y)
20
21

◆ hess_sdf()

def sdf.hess_sdf (   t,
  x,
  y,
  z,
  tx,
  ty,
  tz 
)

Definition at line 22 of file sdf.py.

22def hess_sdf(t, x, y, z, tx, ty, tz):
23 #return Sphere.hessSdf(xc, yc, zc, x, y, z)
24 return CylinderZ.hessSdf(0, -0.5-r, x, y)
25
26# Indenters
27

◆ sdf()

def sdf.sdf (   t,
  x,
  y,
  z,
  tx,
  ty,
  tz 
)

Definition at line 12 of file sdf.py.

12def sdf(t, x, y, z, tx, ty, tz):
13 #return Sphere.sDF(r, xc, yc, zc, x, y, z)
14 return CylinderZ.sDF(r, 0, -0.5-r, x, y)
15
16
Definition: sdf.py:1

Variable Documentation

◆ r

int sdf.r = 1

Definition at line 5 of file sdf.py.