1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-08 14:17:06 +03:00

0023985: There is no section between attached faces.

Added new parameter for checking whether the plane and cylinder are parallel - the height of the cylinder.
This parameter is needed for the cases when angle between AXIS and plane's normal is very close to PI,
but the "height" is big enough that point, translated from intersection point between cylinder's axis and plane
on the "height" distance in the direction of cylinder's axis, does not belong to the plane.
Such plane and cylinder cannot be considered as parallel.
Add test case for this fix
This commit is contained in:
emv
2013-05-31 17:17:34 +04:00
parent 470ebb43f2
commit 04cbc9d384
8 changed files with 113 additions and 50 deletions

27
tests/bugs/modalg_5/bug23985 Executable file
View File

@@ -0,0 +1,27 @@
puts "========"
puts "OCC23985"
puts "========"
puts ""
##########################################
## There is no section between attached faces
##########################################
set BugNumber 23985
restore [locate_data_file bug23985_b1.brep] b1
restore [locate_data_file bug23985_b2.brep] b2
bsection result b1 b2
set expl [explode result]
set length [llength $expl]
puts "Result is $length section edge"
if {$length > 0} {
puts "${BugNumber} OK"
} else {
puts "Faulty ${BugNumber}"
}
set 2dviewer 0