File: bug29698

package info (click to toggle)
opencascade 7.9.2%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 301,924 kB
  • sloc: cpp: 1,523,264; tcl: 10,159; cs: 5,173; java: 1,554; sh: 1,342; ansic: 827; xml: 699; makefile: 30; javascript: 22
file content (43 lines) | stat: -rw-r--r-- 939 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
puts "============"
puts "OCC29698"
puts "============"
puts ""
###############################
## Regression vs 7.2.0: Common operation raises FLT_INVALID_OPERATION exception
###############################

# the case is a copy of the test case
# bugs/modalg_6/bug26952_1
# to test the BOP operation on the same arguments
# with FPE signals switched on

restore [locate_data_file bug26952_B41.brep] b1
restore [locate_data_file bug26952_Tank41_1.brep] b2

# enable FPE signals
dsetsignal 1

bclearobjects
bcleartools
baddobjects b1
baddtools b2
bfillds
bbop result 0

# disable FPE signals
dsetsignal 0

checkprops result -s 424.666
checknbshapes result -wire 2 -face 1

# check modification of the front face of the solid
savehistory h
explode b2 f
modified f_mod h b2_12

explode result f
checkprops f_mod -equal result_1

checknbshapes f_mod -ref [nbshapes result_1]

checkview -display result -2d -path ${imagedir}/${test_image}.png