File: bug26206

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 (26 lines) | stat: -rw-r--r-- 645 bytes parent folder | download | duplicates (9)
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
puts "================"
puts "OCC26206"
puts "================"
puts ""
#######################################################################
# BRepClass_FaceClassifier returns TopAbs_OUT for internal point
#######################################################################

restore [locate_data_file bug26206_group_1.brep] a

point p 0.012676794773312086 0.04799218752935417

set info [b2dclassify a p 1e-05]

if { [regexp "The point is IN shape" $info] == 1  } {
    puts "OK: point is IN shape"
} else {
    puts "Error : point should be IN shape"
}

pcurve a

#v2d2
view 1 -2D-  728 20 400 400
2dfit
xwd ${imagedir}/${test_image}.png