1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

Fix of regression in Extrema, improvement in 3D offset.

This commit is contained in:
jgv
2020-10-14 11:54:11 +03:00
committed by mgn
parent 628c0211d5
commit 19f77300a8

View File

@@ -3115,12 +3115,23 @@ Standard_Boolean BRepOffset_Tool::EnLargeFace
}
else
{
Standard_Real FaceDU = UF2 - UF1;
Standard_Real FaceDV = VF2 - VF1;
UU1 = UF1 - 10*FaceDU;
UU2 = UF2 + 10*FaceDU;
VV1 = VF1 - 10*FaceDV;
VV2 = VF2 + 10*FaceDV;
if (theExtensionMode == 2)
{
Standard_Real FaceDU = UF2 - UF1;
Standard_Real FaceDV = VF2 - VF1;
UU1 = UF1 - 10*FaceDU;
UU2 = UF2 + 10*FaceDU;
VV1 = VF1 - 10*FaceDV;
VV2 = VF2 + 10*FaceDV;
}
else
{
Standard_Real aSize = theLenBeforeUfirst;
UU1 = UF1 - aSize;
UU2 = UF2 + aSize;
VV1 = VF1 - aSize;
VV2 = VF2 + aSize;
}
coeff = 1.;
}