ProcessedHostMeshData#

Fully qualified name: usd_optimize::ProcessedHostMeshData

struct ProcessedHostMeshData : public usd_optimize::ProcessedData#

Public Functions

inline ProcessedHostMeshData(
const omo::HostMeshData &meshData,
const PXR_NS::UsdPrim &usdPrim,
bool write = true,
)#
inline virtual bool shouldDelete() const override#
inline virtual size_t cornerCount() const override#

The number of corners in the resulting mesh, if implemented by a mesh-specific derived class.

inline virtual size_t faceCount() const override#

The number of faces in the resulting mesh, if implemented by a mesh-specific derived class.

inline virtual size_t vertexCount() const override#

The number of vertices in the resulting mesh, if implemented by a mesh-specific derived class.

inline virtual void writeToUsd(
const std::string &primPath,
const PXR_NS::UsdStageWeakPtr &stage,
) override#

If implemented by a derived class, can write its data to the provided prim path and UsdStage.

Parameters:
  • primPath – The prim path

  • stage – The output stage

inline PXR_NS::UsdPrim usdPrim() const#
inline bool shouldWrite() const#
inline virtual void updateStats(TotalStats &stats) const#

This will be called by the pipeline to gather stats.

Protected Attributes

omo::HostMeshData m_meshData#
PXR_NS::UsdPrim m_usdPrim#
bool m_write = true#