Loading...
Searching...
No Matches
metrics.h File Reference

Schema and utilities for encoding various spatial and geometric metrics of a UsdStage and its contents. More...

+ Include dependency graph for metrics.h:

Go to the source code of this file.

Classes

class  UsdGeomLinearUnits
 Container class for static double-precision symbols representing common units of measure expressed in meters. More...
 

Functions

USDGEOM_API TfToken UsdGeomGetStageUpAxis (const UsdStageWeakPtr &stage)
 Fetch and return stage 's upAxis.
 
USDGEOM_API bool UsdGeomSetStageUpAxis (const UsdStageWeakPtr &stage, const TfToken &axis)
 Set stage 's upAxis to axis, which must be one of UsdGeomTokens->y or UsdGeomTokens->z.
 
USDGEOM_API TfToken UsdGeomGetFallbackUpAxis ()
 Return the site-level fallback up axis as a TfToken.
 
USDGEOM_API double UsdGeomGetStageMetersPerUnit (const UsdStageWeakPtr &stage)
 Return stage's authored metersPerUnit, or 0.01 if unauthored.
 
USDGEOM_API bool UsdGeomStageHasAuthoredMetersPerUnit (const UsdStageWeakPtr &stage)
 Return whether stage has an authored metersPerUnit.
 
USDGEOM_API bool UsdGeomSetStageMetersPerUnit (const UsdStageWeakPtr &stage, double metersPerUnit)
 Author stage's metersPerUnit.
 
USDGEOM_API bool UsdGeomLinearUnitsAre (double authoredUnits, double standardUnits, double epsilon=1e-5)
 Return true if the two given metrics are within the provided relative epsilon of each other, when you need to know an absolute metric rather than a scaling factor.
 

Detailed Description

Schema and utilities for encoding various spatial and geometric metrics of a UsdStage and its contents.

Definition in file metrics.h.