mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-05-10 17:40:24 +08:00
1. New testgrid "lowalgos/intss" has been created. It will contain all test cases on geometrical intersection of two surfaces ("intersect" DRAW-command) and two faces ("bopcurves" DRAW-command).
2. New test case for the issue #28493 has been created because the problem is not reproduced on MASTER.
3. Test case (lowalgos/intss/bug24472) for the issue #29501 has been modified in order to check loops of the resulting intersection curves.
30 lines
664 B
Plaintext
30 lines
664 B
Plaintext
puts "========================"
|
|
puts "OCC23643"
|
|
puts "========================"
|
|
puts ""
|
|
#######################################################################
|
|
# Intersection algorithm produces B-Spline curve in case of coaxial cones
|
|
#######################################################################
|
|
|
|
restore [locate_data_file bug23643_qf3.brep] b
|
|
|
|
explode b
|
|
copy b_1 f1
|
|
copy b_2 f2
|
|
|
|
mksurface s1 f1
|
|
mksurface s2 f2
|
|
|
|
trim s1t s1 0 2*pi -18 10
|
|
trim s2t s2 0 2*pi -18 10
|
|
|
|
intersect result s1t s2t
|
|
|
|
set log [dump result]
|
|
|
|
if {[regexp {Trimmed +curve} ${log}]} {
|
|
puts "Intersection algorithm work OK"
|
|
} else {
|
|
puts "Error: Intersection algorithm work bad"
|
|
}
|