File: bug23244

package info (click to toggle)
opencascade 7.5.1%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 290,544 kB
  • sloc: cpp: 1,190,524; tcl: 15,703; cs: 5,173; java: 1,557; ansic: 1,174; sh: 901; xml: 699; perl: 54; makefile: 27
file content (36 lines) | stat: -rw-r--r-- 798 bytes parent folder | download | duplicates (12)
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
puts "================"
puts "OCC23244"
puts "================"
puts ""
#######################################################################
# Bug of BRepClass_FaceClassifier: it does not take into account the tolerance
#######################################################################

set BugNumber OCC23244

restore [locate_data_file OCC23244-comp.brep] a

explode a
explode a_1

smallview
donly a_1_2 a_3
fit

mkpoint p3 a_3
projponf a_1_2 p3
point pp3 69.220445243320853 1216.6123701316949

set result [split [b2dclassify a_1_2 pp3 1.e-5] ]

set ll [llength ${result}]
if {${ll} < 4} {
   puts "Bad format of bclassify draw-command; Faulty ${BugNumber}"
} else {
   if { [regexp "ON" $result] == 1 } {
      puts "OK ${BugNumber}"
   } else {
      puts "Faulty ${BugNumber}"
   }
}