Part: make sure that new wire has same orientation as old wire as otherwise the offset will be negative

This commit is contained in:
wmayer
2022-04-09 12:46:27 +02:00
parent 731cda3e1a
commit 0571a7f2b2

View File

@@ -87,6 +87,10 @@ void BRepOffsetAPI_MakeOffsetFix::AddWire(const TopoDS_Wire& Spine)
}
wire = mkWire.Wire();
// Make sure that the new wire has the same orientation as the source wire
// because otherwise the offset will shrink the wire
wire.Orientation(Spine.Orientation());
}
mkOffset.AddWire(wire);
myResult.Nullify();
@@ -103,7 +107,7 @@ void BRepOffsetAPI_MakeOffsetFix::Build()
}
void BRepOffsetAPI_MakeOffsetFix::Init(const TopoDS_Face& Spine, const GeomAbs_JoinType Join,
const Standard_Boolean IsOpenResult)
const Standard_Boolean IsOpenResult)
{
mkOffset.Init(Spine, Join, IsOpenResult);
}