defineSphere#

Fully qualified name: usdex::core::defineSphere

pxr::UsdGeomSphere usdex::core::defineSphere(
pxr::UsdStagePtr stage,
const pxr::SdfPath &path,
const double radius = 1.0,
const std::optional<pxr::GfVec3f> displayColor = std::nullopt,
const std::optional<float> displayOpacity = std::nullopt,
)#

Defines a sphere primitive.

Defines a sphere of the specified radius at the origin.

Parameters:
  • stage – The stage on which to define the sphere

  • path – The absolute prim path at which to define the sphere

  • radius – The radius of the sphere

  • displayColor – Values to be authored for the display color

  • displayOpacity – Values to be authored for the display opacity

Returns:

UsdGeomSphere schema wrapping the defined UsdPrim