flow.sample_solid_fraction
flow.sample_solid_fraction(sdf, grid, epsilon=None, profile='smootherstep')
Evaluate a scene SDF on the grid and squash it to a solid fraction.
Parameters
| sdf |
Callable[[jax.Array], jax.Array] |
A callable on (..., 3) points, as :func:cadjoint.functionalize produces. |
required |
| grid |
FlowGrid |
The lattice to sample. |
required |
| epsilon |
float | None |
Interface half-width; None uses :meth:FlowGrid.suggested_epsilon. |
None |
| profile |
str |
Passed to :func:solid_fraction. |
'smootherstep' |
Returns
|
jax.Array |
(NX, NY, NZ) solid fraction. |