1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-08 14:17:06 +03:00

0024881: Wrong status returned by ShapeFix_Wire::FixGaps3d () operation

The reason of FAIL status of FixGaps3d is that the trying to convert
curves to BSplines on valid edges (both adjacent points saticfy a
precision) leads to skipping of the convertation and gives wrong status.

Check of the gap on adjacent points before try ro convert curves was added.

Test-case for issue #24881
This commit is contained in:
akz
2015-02-12 12:08:05 +03:00
committed by bugmaster
parent fc0180e5f3
commit 2bfe59b69c
3 changed files with 183 additions and 0 deletions

View File

@@ -290,6 +290,9 @@ static Standard_Real AdjustOnPeriodic3d (const Handle(Geom_Curve)& c,
if (convert)
{
// Check that gap satisfies the precision - in this case no convertation produced
if (cpnt1.Distance(vpnt) < preci && cpnt2.Distance(vpnt) < preci)
return Standard_False;
Handle(Geom_BSplineCurve) bsp1, bsp2;
Handle(Geom_Curve) c;