mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-21 10:13:43 +03:00
0030629: Modeling Algorithms - Invalid result of fuse operation
Plane/Torus intersection: take into account the Plane-Torus distance sign to compute the correct location of the section curve. Test case for the issue.
This commit is contained in:
parent
fc867b96a5
commit
cea8d5c1ab
@ -2077,7 +2077,7 @@ void IntAna_QuadQuadGeo::Perform(const gp_Pln& Pln,
|
|||||||
}
|
}
|
||||||
//
|
//
|
||||||
if (Abs(aDR) < aTolNum) {
|
if (Abs(aDR) < aTolNum) {
|
||||||
aDist=aRMin;
|
aDist = (aDist < 0) ? -aRMin : aRMin;
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
typeres = IntAna_Circle;
|
typeres = IntAna_Circle;
|
||||||
|
22
tests/bugs/modalg_7/bug30629
Normal file
22
tests/bugs/modalg_7/bug30629
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
puts "========"
|
||||||
|
puts "0030629: Modeling Algorithms - Invalid result of fuse operation"
|
||||||
|
puts "========"
|
||||||
|
puts ""
|
||||||
|
|
||||||
|
restore [locate_data_file bug30629.brep] s
|
||||||
|
|
||||||
|
explode s so
|
||||||
|
|
||||||
|
bclearobjects
|
||||||
|
bcleartools
|
||||||
|
baddobjects s_1
|
||||||
|
baddtools s_2 s_3 s_4
|
||||||
|
bfillds
|
||||||
|
|
||||||
|
bbop result 1
|
||||||
|
|
||||||
|
checkshape result
|
||||||
|
checknbshapes result -wire 11 -face 11 -shell 3 -solid 3
|
||||||
|
checkprops result -s 725537 -v 1.33469e+07
|
||||||
|
|
||||||
|
checkview -display result -2d -path ${imagedir}/${test_image}.png
|
Loading…
x
Reference in New Issue
Block a user