omni::connect::core::defineCubicBasisCurves

Defined in omni/connect/core/CurvesAlgo.h

pxr::UsdGeomBasisCurves omni::connect::core::defineCubicBasisCurves(pxr::UsdPrim parent, const std::string &name, const pxr::VtIntArray &curveVertexCounts, const pxr::VtVec3fArray &points, const pxr::TfToken &basis = pxr::UsdGeomTokens->bezier, const pxr::TfToken &wrap = pxr::UsdGeomTokens->nonperiodic, carb::cpp::optional<const FloatPrimvarData> widths = carb::cpp::nullopt, carb::cpp::optional<const Vec3fPrimvarData> normals = carb::cpp::nullopt, carb::cpp::optional<const Vec3fPrimvarData> displayColor = carb::cpp::nullopt, carb::cpp::optional<const FloatPrimvarData> displayOpacity = carb::cpp::nullopt)

Defines a batched Cubic UsdGeomBasisCurves prim on the stage.

This is an overloaded member function, provided for convenience. It differs from the above function only in what arguments it accepts.

Parameters
  • parent – Prim below which to define the curves.

  • name – Name of the curves.

  • curveVertexCounts – The number of vertices in each independent curve. The length of this array determines the number of curves.

  • points – Vertex/CV positions for the curves described in local space.

  • basis – The basis specifies the vstep and matrix used for cubic interpolation. Accepted values for cubic curves are UsdGeomTokens->bezier, UsdGeomTokens->bspline, UsdGeomTokens->catmullRom.

  • wrap – Determines how the start and end points of the curve behave. Accepted values are UsdGeomTokens->nonperiodic, UsdGeomTokens->periodic, and UsdGeomTokens->pinned (bspline and catmullRom only).

  • widths – Values for the width specification for the curves.

  • normals – Values for the normals primvar for the curves. If authored, the curves are considered oriented ribbons rather than tubes.

  • displayColor – Values to be authored for the display color primvar.

  • displayOpacity – Values to be authored for the display opacity primvar.

Returns

UsdGeomBasisCurves schema wrapping the defined UsdPrim