mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 22:33:33 +00:00
metersPerUnit
This commit is contained in:
@@ -42,6 +42,7 @@ USDSerializer::USDSerializer(const std::string& out_filename, const SerializerSe
|
|||||||
throw std::runtime_error("Could not create USD stage");
|
throw std::runtime_error("Could not create USD stage");
|
||||||
|
|
||||||
pxr::UsdGeomSetStageUpAxis(stage_, pxr::UsdGeomTokens->z);
|
pxr::UsdGeomSetStageUpAxis(stage_, pxr::UsdGeomTokens->z);
|
||||||
|
pxr::UsdGeomSetStageMetersPerUnit(stage_, 1.0f);
|
||||||
|
|
||||||
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());
|
||||||
|
|||||||
Reference in New Issue
Block a user