defineCube#
Fully qualified name: usdex::core::defineCube
- pxr::UsdGeomCube usdex::core::defineCube(
- pxr::UsdPrim prim,
- const double size = 2.0,
- const std::optional<pxr::GfVec3f> displayColor = std::nullopt,
- const std::optional<float> displayOpacity = std::nullopt,
Defines a cube primitive from an existing prim.
This is an overloaded member function, provided for convenience. It differs from the above function only in what arguments it accepts.
- Parameters:
prim – Prim below which to define the cube
size – The size of the cube
displayColor – Values to be authored for the display color
displayOpacity – Values to be authored for the display opacity
- Returns:
UsdGeomCube schema wrapping the defined UsdPrim