Trax3 3.1.0
trax track library
Loading...
Searching...
No Matches
trax::USDExporter Class Reference

Trax writer for USD prims. More...

#include <C:/Trend/Development/Trax3/Code/usd/SupportUSD_Exporter.h>

Inheritance diagram for trax::USDExporter:

Public Member Functions

 USDExporter (pxr::UsdStageRefPtr stage, const pxr::SdfPath &atPath, bool bWriteTrackMesh=false)
void Prepare (TrackSystem &tracksystem)
 Prepare the stage for writing the track system.
void Write (const TrackSystem &tracksystem)
 Write the track system to the stage.
pxr::UsdStageRefPtr GetStage () const noexcept

Detailed Description

Trax writer for USD prims.

The USDExporter writes trax objects to an USD stage. Do not combine the USDExporter with the USDReader in a read/write cycle, since the values might migrate over many cycles; use the XML read/write support for that purpose.

Member Function Documentation

◆ Prepare()

void trax::USDExporter::Prepare ( TrackSystem & tracksystem)

Prepare the stage for writing the track system.

Parameters
tracksystemTrackSystem to prepare.

The method writes the USDPath property to the objects references, so they can be used to establish connections in the USD file. If the TrackSystem was read by USDReader there is no need to call the method prior to writing.


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