warp.geometry.swept_volume_bounds#

warp.geometry.swept_volume_bounds(meshes, transforms, padding=0.0, device=None)[source]#

Return the world-space axis-aligned bounds of every mesh over every pose.

Reduces each mesh’s rest-pose vertices to an axis-aligned box, then transforms the eight box corners by every pose and reduces their union, entirely with Warp kernels.

Use this to size a domain that several fields share: union these bounds and pass the result to swept_volume_field() as lower and upper.

Parameters:
Returns:

A tuple (lower, upper) of warp.vec3 world coordinates.

Return type:

tuple[wp.vec3, wp.vec3]