mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 14:31:39 +00:00
Retain transform when doing unification in kernel
This commit is contained in:
@@ -231,7 +231,11 @@ bool IfcGeom::OpenCascadeKernel::convert_openings(const IfcUtil::IfcBaseEntity*
|
|||||||
bool IfcGeom::OpenCascadeKernel::unify_shapes(const IfcGeom::ConversionResults& input, IfcGeom::ConversionResults& output) {
|
bool IfcGeom::OpenCascadeKernel::unify_shapes(const IfcGeom::ConversionResults& input, IfcGeom::ConversionResults& output) {
|
||||||
std::transform(input.begin(), input.end(), std::back_inserter(output), [this](auto v) {
|
std::transform(input.begin(), input.end(), std::back_inserter(output), [this](auto v) {
|
||||||
auto& s = std::static_pointer_cast<OpenCascadeShape>(v.Shape())->shape();
|
auto& s = std::static_pointer_cast<OpenCascadeShape>(v.Shape())->shape();
|
||||||
return IfcGeom::ConversionResult(v.ItemId(), new OpenCascadeShape(util::unify(s, settings_.get<ifcopenshell::geometry::settings::Precision>().get())), v.StylePtr());
|
return IfcGeom::ConversionResult(
|
||||||
|
v.ItemId(),
|
||||||
|
v.Placement(),
|
||||||
|
new OpenCascadeShape(util::unify(s, settings_.get<ifcopenshell::geometry::settings::Precision>().get())),
|
||||||
|
v.StylePtr());
|
||||||
});
|
});
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user