int implicitsurfacebounds(<geometry>geometry, vector center, float radius, float &min, float &max)
<geometry>
When running in the context of a node (such as a wrangle SOP), this argument can be an integer representing the input number (starting at 0) to read the geometry from.
Alternatively, the argument can be a string specifying a geometry file (for example, a .bgeo) to read from. When running inside Houdini, this can be an op:/path/to/sop reference.
center
Sphere center in world space.
radius
Sphere radius.
min
Output lower bound on SDF values over the sphere.
max
Output upper bound on SDF values over the sphere.
Returns
1 on success, 0 if no valid implicit-surface data is available.
This function requires the same implicit-surface attributes as implicitsurface.
Examples ¶
float dmin, dmax; int ok = implicitsurfacebounds(0, @P, chf("radius"), dmin, dmax); if (ok) f@interval = dmax - dmin;
| See also | |
| bounds | |
| implicit | |
| sdf |