_getPivotXformOps#

Fully qualified name: usd_optimize::_getPivotXformOps

std::vector<PXR_NS::UsdGeomXformOp> usd_optimize::_getPivotXformOps(
const std::vector<PXR_NS::UsdGeomXformOp> &orderedXformOps,
bool includeInverseOps,
)#
Parameters:
  • orderedXformOps – The list of ordered xform ops to find pivots in.

  • includeInverseOps – If true, the returned list also contains the matched inverse ops (interleaved in the order they appeared in orderedXformOps). If false, only forward ops are returned, which is convenient when you need the pivot values &#8212; inverse ops do not own an attribute value.

Returns:

A list of xform ops that participate in a pivot/!invert pair, in the same order they were in the original list. Orphan pivot ops (forward without a matching inverse, or vice versa) are skipped. Empty if no pivot pairs are found.