HdfSerializer::read_surface_style - fill style.instance

E.g. Bonsai is relying on geometry.materials to identify what styles object has and in this case it would skip all styles without entities.
This commit is contained in:
Andrej730
2025-08-07 21:01:18 +05:00
parent 4b7dfcdae5
commit 2855e96e53
2 changed files with 11 additions and 4 deletions
+3 -1
View File
@@ -90,7 +90,9 @@ private:
std::map<std::string, std::string> group_cache_;
H5::Group createRepresentationGroup(const H5::Group& element_group, const std::string& gid);
void read_surface_style(surface_style_serialization& serialized_style, ifcopenshell::geometry::taxonomy::style& style);
void read_surface_style(const surface_style_serialization& s,
ifcopenshell::geometry::taxonomy::style& gss,
IfcParse::IfcFile& f);
void write_style(surface_style_serialization& data, const ifcopenshell::geometry::taxonomy::style::ptr& s);
public: