File: C2

package info (click to toggle)
opencascade 7.6.3%2Bdfsg1-7
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 289,852 kB
  • sloc: cpp: 1,229,388; tcl: 15,963; cs: 5,173; java: 1,557; sh: 1,211; ansic: 821; xml: 737; makefile: 28; javascript: 22
file content (29 lines) | stat: -rw-r--r-- 751 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
restore [locate_data_file bug29481_ex2.brep] s
explode s f

# remove the gap 
compound s_7 s_8 s_9 s_10 gap
removefeatures res1 s gap
checkshape res1
checkprops res1 -s 624 -v 992
checknbshapes res1 -vertex 16 -edge 24 -wire 12 -face 12 -shell 2 -solid 1
CheckIsFeatureRemoved gap {v e f}


# remove hole
explode s
removefeatures res2 s s_2
checkshape res2
checkprops res2 -s 608 -v 992
checknbshapes res2 -vertex 16 -edge 24 -wire 10 -face 10 -shell 1 -solid 1
CheckIsFeatureRemoved s_2 {v e f}


# remove both gap and hole
removefeatures result s gap s_2
checkshape result
checkprops result -s 600 -v 1000
checknbshapes result -vertex 8 -edge 12 -wire 6 -face 6 -shell 1 -solid 1
CheckIsFeatureRemoved gap {v e f}
CheckIsFeatureRemoved s_2 {v e f}