definePointCloud#
Fully qualified name: usdex::core::definePointCloud
- pxr::UsdGeomPoints usdex::core::definePointCloud(
- pxr::UsdPrim prim,
- const pxr::VtVec3fArray &points,
- 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 point cloud using the
UsdGeomPointsschema.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 point cloud on. The prim’s type will be set to
UsdGeomPoints.points – Positions of the points.
widths – Values for the width specification for the points.
normals – Values for the normals primvar for the points.
displayColor – Values to be authored for the display color primvar.
displayOpacity – Values to be authored for the display opacity primvar.
- Returns:
UsdGeomPointsschema wrapping the definedUsdPrim