1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-21 10:13:43 +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 ika
parent bd2a789f15
commit 052d06b301

View File

@ -3183,12 +3183,23 @@ Standard_Boolean BRepOffset_Tool::EnLargeFace
} }
else else
{ {
Standard_Real FaceDU = UF2 - UF1; if (theExtensionMode == 2)
Standard_Real FaceDV = VF2 - VF1; {
UU1 = UF1 - 10*FaceDU; Standard_Real FaceDU = UF2 - UF1;
UU2 = UF2 + 10*FaceDU; Standard_Real FaceDV = VF2 - VF1;
VV1 = VF1 - 10*FaceDV; UU1 = UF1 - 10*FaceDU;
VV2 = VF2 + 10*FaceDV; 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.; coeff = 1.;
} }