bindMaterialSubsets#

Fully qualified name: usdex::core::bindMaterialSubsets

bool usdex::core::bindMaterialSubsets(
const std::vector<pxr::UsdGeomSubset> &subsets,
const std::vector<pxr::UsdShadeMaterial> &materials,
)#

Binds materials to the geometry subsets of the given geometry prim.

Note

The subsets and materials must be in the same order and the number of subsets must equal the number of materials.

Parameters:
  • subsets – The geometry subsets to bind the materials to

  • materials – The materials to bind to the subsets

Returns:

Whether the materials were successfully bound to the subsets.