mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-26 02:07:36 +00:00
stage up axis
This commit is contained in:
@@ -24,6 +24,8 @@
|
|||||||
#include "pxr/base/gf/vec3f.h"
|
#include "pxr/base/gf/vec3f.h"
|
||||||
#include "pxr/usd/usdGeom/xform.h"
|
#include "pxr/usd/usdGeom/xform.h"
|
||||||
#include "pxr/usd/usdGeom/scope.h"
|
#include "pxr/usd/usdGeom/scope.h"
|
||||||
|
#include "pxr/usd/usdGeom/tokens.h"
|
||||||
|
#include "pxr/usd/usdGeom/metrics.h"
|
||||||
#include "pxr/usd/usdLux/distantLight.h"
|
#include "pxr/usd/usdLux/distantLight.h"
|
||||||
#include "pxr/usd/usdShade/shader.h"
|
#include "pxr/usd/usdShade/shader.h"
|
||||||
#include "pxr/usd/usdShade/materialBindingAPI.h"
|
#include "pxr/usd/usdShade/materialBindingAPI.h"
|
||||||
@@ -37,6 +39,8 @@ USDSerializer::USDSerializer(const std::string& out_filename, const SerializerSe
|
|||||||
if(!stage_)
|
if(!stage_)
|
||||||
throw std::runtime_error("Could not create USD stage");
|
throw std::runtime_error("Could not create USD stage");
|
||||||
|
|
||||||
|
pxr::UsdGeomSetStageUpAxis(stage_, pxr::UsdGeomTokens->z);
|
||||||
|
|
||||||
auto world = pxr::UsdGeomXform::Define(stage_, pxr::SdfPath("/World"));
|
auto world = pxr::UsdGeomXform::Define(stage_, pxr::SdfPath("/World"));
|
||||||
stage_->SetDefaultPrim(world.GetPrim());
|
stage_->SetDefaultPrim(world.GetPrim());
|
||||||
pxr::UsdGeomScope::Define(stage_, pxr::SdfPath("/Looks"));
|
pxr::UsdGeomScope::Define(stage_, pxr::SdfPath("/Looks"));
|
||||||
|
|||||||
Reference in New Issue
Block a user