mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03:00
0023389: (OCC 6.5.3 regression) BRepAlgoAPI_Cut returns invalid solid
Adding test case boolean/bopcut_complex/P8
This commit is contained in:
parent
1bc6c5efd0
commit
3d063ba65f
@ -352,13 +352,15 @@ Standard_Boolean IntPolyh_Intersection::PerformMaillage(IntPolyh_PMaillageAffina
|
|||||||
theMaillageS->SetEnlargeZone( myZone );
|
theMaillageS->SetEnlargeZone( myZone );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
// if too many intersections, consider surfaces parallel (eap)
|
// if too many intersections, consider surfaces parallel (eap)
|
||||||
if(FinTTC > 200 &&
|
if(FinTTC > 200 &&
|
||||||
(FinTTC >= theMaillageS->GetArrayOfTriangles(1).NbTriangles() ||
|
(FinTTC >= theMaillageS->GetArrayOfTriangles(1).NbTriangles() ||
|
||||||
FinTTC >= theMaillageS->GetArrayOfTriangles(2).NbTriangles()) ) {
|
FinTTC >= theMaillageS->GetArrayOfTriangles(2).NbTriangles()) ) {
|
||||||
return Standard_False;
|
return Standard_False;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
return Standard_True;
|
return Standard_True;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
28
tests/boolean/bopcut_complex/P8
Executable file
28
tests/boolean/bopcut_complex/P8
Executable file
@ -0,0 +1,28 @@
|
|||||||
|
puts "============"
|
||||||
|
puts "CR23389"
|
||||||
|
puts "============"
|
||||||
|
puts ""
|
||||||
|
###################################################################################
|
||||||
|
# BRepAlgoAPI_Cut returns invalid solid
|
||||||
|
###################################################################################
|
||||||
|
|
||||||
|
restore [locate_data_file CR23389-blade3.brep] b
|
||||||
|
explode b
|
||||||
|
checkshape b_1
|
||||||
|
checkshape b_2
|
||||||
|
bopcheck b_1
|
||||||
|
bopcheck b_2
|
||||||
|
bopargcheck b_1 b_2
|
||||||
|
|
||||||
|
bop b_1 b_2
|
||||||
|
|
||||||
|
bopcut result
|
||||||
|
|
||||||
|
set square 53698.1
|
||||||
|
|
||||||
|
set 3dviewer 1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user