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