mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-16 10:08:36 +03:00
0031201: Modeling Algorithms - Result of a section operation is incomplete
Fixing misprint - use the boundaries of the cylinder for Plane/Cylinder intersection. Test cases for the issue.
This commit is contained in:
parent
2b5a58a33c
commit
34e7ac6817
@ -109,7 +109,7 @@ void IntPatch_ImpImpIntersection::Perform(const Handle(Adaptor3d_HSurface)& S1,
|
|||||||
case 21: { // Plane/Cylinder
|
case 21: { // Plane/Cylinder
|
||||||
Standard_Real VMin, VMax, H;
|
Standard_Real VMin, VMax, H;
|
||||||
//
|
//
|
||||||
const Handle(Adaptor3d_HSurface)& aSCyl = bReverse ? S2 : S1;
|
const Handle(Adaptor3d_HSurface)& aSCyl = bReverse ? S1 : S2;
|
||||||
VMin = aSCyl->FirstVParameter();
|
VMin = aSCyl->FirstVParameter();
|
||||||
VMax = aSCyl->LastVParameter();
|
VMax = aSCyl->LastVParameter();
|
||||||
H = (Precision::IsNegativeInfinite(VMin) ||
|
H = (Precision::IsNegativeInfinite(VMin) ||
|
||||||
|
27
tests/bugs/modalg_7/bug31201_1
Normal file
27
tests/bugs/modalg_7/bug31201_1
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
puts "======================================================="
|
||||||
|
puts "OCC31201: Modeling Algorithms - Result of a section operation is incomplete"
|
||||||
|
puts "======================================================="
|
||||||
|
puts ""
|
||||||
|
|
||||||
|
restore [locate_data_file bug31201_obj1.brep] s1
|
||||||
|
restore [locate_data_file bug31201_tool.brep] s2
|
||||||
|
bclearobjects
|
||||||
|
bcleartools
|
||||||
|
baddobjects s1
|
||||||
|
baddtools s2
|
||||||
|
bfillds
|
||||||
|
|
||||||
|
bsplit rsp
|
||||||
|
|
||||||
|
checkshape rsp
|
||||||
|
checknbshapes rsp -face 22 -wire 22
|
||||||
|
|
||||||
|
bbop result 4
|
||||||
|
|
||||||
|
checkshape result
|
||||||
|
checkprops result -l 36.032
|
||||||
|
checknbshapes result -vertex 11 -edge 11
|
||||||
|
|
||||||
|
checksection result -r 0
|
||||||
|
|
||||||
|
checkview -display result -2d -path ${imagedir}/${test_image}.png
|
27
tests/bugs/modalg_7/bug31201_2
Normal file
27
tests/bugs/modalg_7/bug31201_2
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
puts "======================================================="
|
||||||
|
puts "OCC31201: Modeling Algorithms - Result of a section operation is incomplete"
|
||||||
|
puts "======================================================="
|
||||||
|
puts ""
|
||||||
|
|
||||||
|
restore [locate_data_file bug31201_obj2.brep] s1
|
||||||
|
restore [locate_data_file bug31201_tool.brep] s2
|
||||||
|
bclearobjects
|
||||||
|
bcleartools
|
||||||
|
baddobjects s1
|
||||||
|
baddtools s2
|
||||||
|
bfillds
|
||||||
|
|
||||||
|
bsplit rsp
|
||||||
|
|
||||||
|
checkshape rsp
|
||||||
|
checknbshapes rsp -face 62 -wire 62
|
||||||
|
|
||||||
|
bbop result 4
|
||||||
|
|
||||||
|
checkshape result
|
||||||
|
checkprops result -l 38.475
|
||||||
|
checknbshapes result -vertex 31 -edge 31
|
||||||
|
|
||||||
|
checksection result -r 0
|
||||||
|
|
||||||
|
checkview -display result -2d -path ${imagedir}/${test_image}.png
|
27
tests/bugs/modalg_7/bug31201_3
Normal file
27
tests/bugs/modalg_7/bug31201_3
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
puts "======================================================="
|
||||||
|
puts "OCC31201: Modeling Algorithms - Result of a section operation is incomplete"
|
||||||
|
puts "======================================================="
|
||||||
|
puts ""
|
||||||
|
|
||||||
|
restore [locate_data_file bug31201_obj3.brep] s1
|
||||||
|
restore [locate_data_file bug31201_tool.brep] s2
|
||||||
|
bclearobjects
|
||||||
|
bcleartools
|
||||||
|
baddobjects s1
|
||||||
|
baddtools s2
|
||||||
|
bfillds
|
||||||
|
|
||||||
|
bsplit rsp
|
||||||
|
|
||||||
|
checkshape rsp
|
||||||
|
checknbshapes rsp -face 62 -wire 62
|
||||||
|
|
||||||
|
bbop result 4
|
||||||
|
|
||||||
|
checkshape result
|
||||||
|
checkprops result -l 62.6295
|
||||||
|
checknbshapes result -vertex 31 -edge 31
|
||||||
|
|
||||||
|
checksection result -r 0
|
||||||
|
|
||||||
|
checkview -display result -2d -path ${imagedir}/${test_image}.png
|
Loading…
x
Reference in New Issue
Block a user