0031587: Modeling Data - add BRepTools::RemoveInternals() removing internal sub-shape...
[occt.git] / tests / bugs / moddata_3 / bug25489
CommitLineData
fe790035 1puts "============"
2puts "CR25489"
3puts "============"
4puts ""
5###################################################################################
6# GCPnts_TangentialDeflection gives incorrect distribution of points
7###################################################################################
8
9restore [locate_data_file bug25469_bad_tria.brep] a
10
11subshape a e 8
12mkcurve c a_8
13
14set deflection 0.001
15set info [crvtpoints r c ${deflection} pi/6]
16
17set str1 "Nb points +: +(\[-0-9.+eE\]+)\n"
18set str2 "Max defl: +(\[-0-9.+eE\]+) +(\[-0-9.+eE\]+) +(\[-0-9.+eE\]+) +(\[-0-9.+eE\]+)"
19
20regexp "${str1}${str2}" ${info} full Nb dmax ufmax ulmax i
21
22#-1
23set min_Nb 4
24if { ${Nb} < ${min_Nb} } {
25 puts "Error : bad value of Nb points=${Nb}"
26}
27
28#-2
29if { ${dmax} > ${deflection} } {
30 puts "Error : bad value of deflection=${dmax}"
31}
32
33smallview
34donly a_8 r_a_8
35fit
36
5747059b 37checkview -screenshot -2d -path ${imagedir}/${test_image}.png