definePolyMesh#

Fully qualified name: usdex::core::definePolyMesh

pxr::UsdGeomMesh usdex::core::definePolyMesh(
pxr::UsdPrim parent,
const std::string &name,
const pxr::VtIntArray &faceVertexCounts,
const pxr::VtIntArray &faceVertexIndices,
const pxr::VtVec3fArray &points,
std::optional<const Vec3fPrimvarData> normals = std::nullopt,
std::optional<const Vec2fPrimvarData> uvs = std::nullopt,
std::optional<const Vec3fPrimvarData> displayColor = std::nullopt,
std::optional<const FloatPrimvarData> displayOpacity = std::nullopt,
)#

Defines a basic polygon mesh 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 mesh

  • name – Name of the mesh

  • faceVertexCounts – The number of vertices in each face of the mesh

  • faceVertexIndices – Indices of the positions from the points to use for each face vertex

  • points – Vertex positions for the mesh described in local space

  • normals – Values to be authored for the normals primvar

  • uvs – Values to be authored for the uv primvar

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

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

Returns:

UsdGeomMesh schema wrapping the defined UsdPrim