All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UsdDracoExportTranslator Class Reference

Translates USD mesh to Draco mesh. More...

Static Public Member Functions

static bool Translate (const UsdGeomMesh &usdMesh, draco::Mesh *dracoMesh, UsdDracoFlag< bool > preservePolygons, UsdDracoFlag< bool > preservePositionOrder, UsdDracoFlag< bool > preserveHoles)
 Translates USD mesh to Draco mesh and returns true on success. More...
 
static std::unique_ptr
< UsdDracoExportAttributeInterface
CreateAttributeFrom (const UsdGeomPrimvar &primvar)
 Creates and returns an export attribute from USD primvar or a nullptr if primvar cannot be exported to Draco. More...
 

Detailed Description

Translates USD mesh to Draco mesh.

Definition at line 45 of file exportTranslator.h.

Member Function Documentation

static std::unique_ptr<UsdDracoExportAttributeInterface> CreateAttributeFrom ( const UsdGeomPrimvar primvar)
static

Creates and returns an export attribute from USD primvar or a nullptr if primvar cannot be exported to Draco.

This method is called by translator as well as by Python script to check whether a primvar should be kept or deleted from USD mesh.

static bool Translate ( const UsdGeomMesh usdMesh,
draco::Mesh *  dracoMesh,
UsdDracoFlag< bool >  preservePolygons,
UsdDracoFlag< bool >  preservePositionOrder,
UsdDracoFlag< bool >  preserveHoles 
)
static

Translates USD mesh to Draco mesh and returns true on success.


The documentation for this class was generated from the following file: