defineLinearBasisCurves#
Fully qualified name: usdex::core::defineLinearBasisCurves
- pxr::UsdGeomBasisCurves usdex::core::defineLinearBasisCurves(
- pxr::UsdPrim prim,
- const pxr::VtIntArray &curveVertexCounts,
- const pxr::VtVec3fArray &points,
- const pxr::TfToken &wrap = pxr::UsdGeomTokens->nonperiodic,
- std::optional<const FloatPrimvarData> widths = std::nullopt,
- std::optional<const Vec3fPrimvarData> normals = std::nullopt,
- std::optional<const Vec3fPrimvarData> displayColor = std::nullopt,
- std::optional<const FloatPrimvarData> displayOpacity = std::nullopt,
Defines a batched Linear
UsdGeomBasisCurvesprim 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:
prim – Prim to define the curves on. The prim’s type will be set to
UsdGeomBasisCurves.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.
wrap – Determines how the start and end points of the curve behave. Accepted values for linear curves are
UsdGeomTokens->nonperiodicandUsdGeomTokens->periodic.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:
UsdGeomBasisCurvesschema wrapping the definedUsdPrim