Implement element-hierarchy setting in USD

This commit is contained in:
Thomas Krijnen
2024-06-29 14:16:07 +02:00
parent a92d51aeb1
commit c68dcba087
5 changed files with 113 additions and 37 deletions
+7
View File
@@ -71,6 +71,13 @@ private:
std::map<std::string, std::string> meshes_;
std::vector<pxr::UsdShadeMaterial> createMaterials(const std::vector<ifcopenshell::geometry::taxonomy::style::ptr>&);
template <typename T>
T writeNode(const IfcGeom::Element*, const IfcGeom::Element* = nullptr);
std::vector<std::pair<IfcGeom::Element const*, IfcGeom::Element const*>> parents_;
std::set<int> written_;
std::map<int, std::string> paths_;
std::map<int, ifcopenshell::geometry::taxonomy::matrix4::ptr> placements_;
public:
USDSerializer(const std::string&, const ifcopenshell::geometry::Settings&, const ifcopenshell::geometry::SerializerSettings&);
virtual ~USDSerializer();