defineCylinder#

Fully qualified name: usdex::core::defineCylinder

pxr::UsdGeomCylinder usdex::core::defineCylinder(
pxr::UsdStagePtr stage,
const pxr::SdfPath &path,
const double radius = 1.0,
const double height = 2.0,
const pxr::TfToken axis = pxr::UsdGeomTokens->z,
const std::optional<pxr::GfVec3f> displayColor = std::nullopt,
const std::optional<float> displayOpacity = std::nullopt,
)#

Defines a cylinder primitive.

Defines a cylinder of the specified radius and height at the origin. The height direction can be specified using axis as ‘X’, ‘Y’, or ‘Z’.

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

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

  • radius – The radius of the cylinder

  • height – The height of the cylinder

  • axis – The axis of the cylinder

  • displayColor – Values to be authored for the display color

  • displayOpacity – Values to be authored for the display opacity

Returns:

UsdGeomCylinder schema wrapping the defined UsdPrim