mymesh.implicit.difff#
- mymesh.implicit.difff(f1, f2)[source]#
Boolean difference of two functions. Negative values are assumed to be “inside”. An R-function
rMax()
maximum is used to obtain a continuously differentiable output. Note that this operation is not symmetric so the order of inputs matters.- Parameters:
f1 (callable) – Callable function of three variables (x, y, z). Function should be able to handle either scalar or vector inputs.
f2 (callable) – Callable function of three variables (x, y, z). Function should be able to handle either scalar or vector inputs.
- Returns:
diff_fun – Difference of the two functions
- Return type:
callable