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

0025886: Wrong result obtained by projection algorithm

Usage of current iteration approximation added if necessary.

Test-case for issue #25886
This commit is contained in:
aml
2015-03-12 12:18:49 +03:00
committed by bugmaster
parent 8d44b0a05f
commit 3629864d0b
4 changed files with 47 additions and 2 deletions

View File

@@ -162,6 +162,16 @@ void Approx_ComputeCLine::Perform(const MultiLine& Line)
if (!Ok && Abs(myfirstU-mylastU) <= TolU)
{
Ok = Standard_True; // stop interval cutting, approx the rest part
if ((thetol3d + thetol2d) < (KeptT3d + KeptT2d))
{
KeptMultiCurve = TheMultiCurve;
KeptUfirst = myfirstU;
KeptUlast = mylastU;
KeptT3d = thetol3d;
KeptT2d = thetol2d;
}
mylastU = KeptUlast;
tolreached = Standard_False; // helas