1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

0025225: Failure of 2d offset algorithm on two wires with arc

Test cases for issue CR25225

Correction of test case bugs/modalg_4(009)/bug745_4 for issue CR25225
This commit is contained in:
jgv
2014-09-18 14:56:56 +04:00
committed by bugmaster
parent 6303cb1205
commit 9ffd84adf5
5 changed files with 91 additions and 12 deletions

View File

@@ -1938,7 +1938,7 @@ void MakeOffset (const TopoDS_Edge& E,
Standard_Real Crossed = Xd.X()*Yd.Y()-Xd.Y()*Yd.X();
Standard_Real Signe = ( Crossed > 0.) ? 1. : -1.;
if (anOffset*Signe < AC.Circle().Radius()) {
if (anOffset*Signe < AC.Circle().Radius() - Precision::Confusion()) {
Handle(Geom2dAdaptor_HCurve) AHC =
new Geom2dAdaptor_HCurve(G2d);