Merge remote-tracking branch 'origin/v0.8.0' into tfk-rocksdb-storage

This commit is contained in:
Thomas Krijnen
2025-08-26 10:17:57 +02:00
1179 changed files with 47255 additions and 16166 deletions
+11 -7
View File
@@ -646,6 +646,8 @@ void SvgSerializer::write(const IfcGeom::BRepElement* brep_obj) {
view_box_3d_.emplace();
BRepBndLib::AddOBB(compound_unmirrored, *view_box_3d_, false, false, false);
#endif
} else {
Logger::Error("Failed to box or edge from drawing annotation");
}
std::vector<string_property> props;
@@ -2401,13 +2403,15 @@ namespace {
std::string SvgSerializer::writeMetadata(const drawing_meta& m) {
gp_Trsf trsf;
trsf.SetTransformation(m.pln_3d.Position(), gp::XOY());
// @todo
std::array<std::array<double, 4>, 4> m4 = {{
{{ 1, 0, 0, 0 }},
{{ 0, 1, 0, 0 }},
{{ 0, 0, 1, 0 }},
{{ 0, 0, 0, 1 }}
}};
NCollection_Mat4<double> mat4;
trsf.GetMat4(mat4);
const auto* d = mat4.GetData();
std::array<std::array<double, 4>, 4> m4 = { {
{{ d[0], d[4], d[8], d[12] }},
{{ d[1], d[5], d[9], d[13] }},
{{ d[2], d[6], d[10], d[14] }},
{{ d[3], d[7], d[11], d[15] }}
} };
return namespace_prefix_ + "plane=\""+ array_to_string(m4) +"\" " +
namespace_prefix_ + "matrix3=\"" + array_to_string(m.matrix_3) + "\"";
}