ifcgeom: fix sweep restore translation sign in sweep_along_curve

bd57cc873 shifted the directrix curve by -mean before sweeping, then
translated the result by -mean again instead of +mean, placing the
geometry at original - 2*mean. Negating the restore translation fixes
the position; shape size was unaffected.

cc @aothms

Generated with the assistance of an AI coding tool.
This commit is contained in:
Bruno Postle
2026-04-09 07:49:53 +01:00
parent 306ab80144
commit db2fcb09e3
@@ -300,7 +300,7 @@ bool OpenCascadeKernel::convert(const taxonomy::sweep_along_curve::ptr scs, Topo
if (applied_temporary_offset) {
gp_Trsf trsf;
trsf.SetTranslation(gp_Vec(-mean.x(), -mean.y(), -mean.z()));
trsf.SetTranslation(gp_Vec(mean.x(), mean.y(), mean.z()));
result.Move(trsf);
}