SVG serialization UnifyInputs option

This commit is contained in:
Thomas Krijnen
2023-07-29 10:07:33 +08:00
parent aa7b5bd1e3
commit 23d096be07
2 changed files with 20 additions and 1 deletions
+9 -1
View File
@@ -81,6 +81,7 @@
#include "../ifcparse/IfcGlobalId.h"
#include "../ifcgeom/kernels/opencascade/base_utils.h"
#include "../ifcgeom/kernels/opencascade/boolean_utils.h"
#include "../ifcgeom/kernels/opencascade/OpenCascadeConversionResult.h"
#include <boost/format.hpp>
@@ -1191,7 +1192,14 @@ void SvgSerializer::write(const geometry_data& data) {
// Iterate over components of compound to have better chance of matching section edges to closed wires
for (; it.More(); it.Next(), ++dash_it) {
const TopoDS_Shape& subshape = it.Value();
const TopoDS_Shape& subshape_before_unification = it.Value();
TopoDS_Shape subshape;
if (unify_inputs_) {
subshape = IfcGeom::util::unify(subshape_before_unification, 1. - 6);
} else {
subshape = subshape_before_unification;
}
Bnd_Box bb;
try {