omni::connect::core::definePolyMesh
Defined in omni/connect/core/MeshAlgo.h
-
pxr::UsdGeomMesh omni::connect::core::definePolyMesh(pxr::UsdPrim parent, const std::string &name, const pxr::VtIntArray &faceVertexCounts, const pxr::VtIntArray &faceVertexIndices, const pxr::VtVec3fArray &points, carb::cpp::optional<const Vec3fPrimvarData> normals = carb::cpp::nullopt, carb::cpp::optional<const Vec2fPrimvarData> uvs = carb::cpp::nullopt, carb::cpp::optional<const Vec3fPrimvarData> displayColor = carb::cpp::nullopt, carb::cpp::optional<const FloatPrimvarData> displayOpacity = carb::cpp::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 vertexpoints – 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