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:
@@ -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
|
||||
|
Reference in New Issue
Block a user