mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 01:41:57 +00:00
SVG serialization UnifyInputs option
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user