mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-28 11:18:18 +00:00
fixes
This commit is contained in:
@@ -668,7 +668,7 @@ void SvgSerializer::write(const IfcGeom::BRepElement<real_t>* brep_obj) {
|
|||||||
// @todo is it correct to call nameElement() here with a single storey (what if this element spans multiple?)
|
// @todo is it correct to call nameElement() here with a single storey (what if this element spans multiple?)
|
||||||
geometry_data data{ compound_local, dash_arrays, trsf, brep_obj->product(), storey, elev, brep_obj->name(), nameElement(storey, brep_obj) };
|
geometry_data data{ compound_local, dash_arrays, trsf, brep_obj->product(), storey, elev, brep_obj->name(), nameElement(storey, brep_obj) };
|
||||||
|
|
||||||
if (auto_section_ || auto_elevation_ || section_ref_ || elevation_ref_) {
|
if (auto_section_ || auto_elevation_ || section_ref_ || elevation_ref_ || elevation_ref_guid_) {
|
||||||
element_buffer_.push_back(data);
|
element_buffer_.push_back(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1972,6 +1972,8 @@ void SvgSerializer::finalize() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
previous = it->first;
|
||||||
|
|
||||||
if (it->second.second.empty()) {
|
if (it->second.second.empty()) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@@ -1982,7 +1984,6 @@ void SvgSerializer::finalize() {
|
|||||||
svg_file << jt->str();
|
svg_file << jt->str();
|
||||||
}
|
}
|
||||||
svg_file << " </g>\n";
|
svg_file << " </g>\n";
|
||||||
previous = it->first;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (previous) {
|
if (previous) {
|
||||||
|
|||||||
Reference in New Issue
Block a user