1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-19 13:40:49 +03:00

Fix for the issue #28849.

This commit is contained in:
nbv
2017-06-16 13:00:02 +03:00
parent e69d993598
commit 08bbed78a8
2 changed files with 24 additions and 1 deletions

View File

@@ -3093,7 +3093,7 @@ Standard_Boolean CyCyNoGeometric(const gp_Cylinder &theCyl1,
Standard_Boolean isChanged = Standard_False;
for (Standard_Integer i = 0; i < aNbWLines; i++)
{
if (aWLFindStatus[i] == WLFStatus_Absent)
if ((aWLFindStatus[i] == WLFStatus_Absent) || (aWLine[i]->NbPnts() == 0))
continue;
Standard_Real aU1c = 0.0, aV1c = 0.0;

View File

@@ -0,0 +1,23 @@
puts "======="
puts "OCC28849"
puts "======="
puts ""
##################################################
# [Regression to 7.1.0] Exception in Boolean operation
##################################################
restore [locate_data_file bug28849_shape1.brep] s1
restore [locate_data_file bug28849_shape2.brep] s2
bsection result s1 s2
regexp {nb alone Vertices : ([-0-9.+eE]+)} [checksection result] full nbv
if { $nbv != 2 } {
puts "Error : Section is incorrect"
} else {
puts "Section is correct"
}
set length 5.40612
set 2dviewer 1