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()aslowerandupper.- Parameters:
meshes (Sequence[warp.Mesh]) – Sequence of rest-pose
warp.Meshobjects.transforms (warp.array2d[warp.transform] | npt.ArrayLike) – Per-mesh, per-sample rigid poses; see
swept_volume_field().padding (float) – Widening applied on every side, in world units.
device (DeviceLike | None) – Device on which to run. Defaults to the device of the first mesh.
- Returns:
A tuple
(lower, upper)ofwarp.vec3world coordinates.- Return type: