mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-13 02:47:48 +00:00
Merge remote-tracking branch 'origin/v0.8.0' into tfk-rocksdb-storage
This commit is contained in:
@@ -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) + "\"";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user