compute_extent_from_points#

omni.fabric.commands.scripts.utils.compute_extent_from_points(
prim: Prim,
time_code: TimeCode = Usd.TimeCode.Default(),
)#

Computes the axis-aligned bounding box (extent) of a given Fabric prim based on its ‘points’ attribute at a specific time.

Parameters:
  • prim (usdrt.Usd.Prim) – The Fabric prim to compute the extent for.

  • time_code (usdrt.Usd.TimeCode, optional) – The time at which to evaluate the ‘points’ attribute. Defaults to usdrt.Usd.TimeCode.Default().

Returns:

The computed bounding box range representing the extent of the prim.

Return type:

usdrt.Gf.Range3d