ProcessedHostPrim#

Fully qualified name: usd_optimize::ProcessedHostPrim

struct ProcessedHostPrim : public usd_optimize::ProcessedData#

Public Functions

inline ProcessedHostPrim(
const omo::Primitive &hostPrim,
const PXR_NS::UsdPrim &usdPrim,
bool write = true,
)#
inline virtual void updateStats(TotalStats &stats) const override#

This will be called by the pipeline to gather stats.

inline const omo::Primitive &hostPrim() const#
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 bool shouldDelete() const#
inline virtual size_t cornerCount() const#

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

inline virtual size_t faceCount() const#

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

inline virtual size_t vertexCount() const#

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

Protected Attributes

omo::Primitive m_hostPrim#
PXR_NS::UsdPrim m_usdPrim#
bool m_write = true#