File: bug25207

package info (click to toggle)
oce 0.18.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 301,548 kB
  • sloc: cpp: 1,190,609; ansic: 67,225; sh: 11,630; tcl: 7,954; cs: 5,221; python: 2,867; java: 1,522; makefile: 342; xml: 292; perl: 37
file content (40 lines) | stat: -rw-r--r-- 1,139 bytes parent folder | download | duplicates (3)
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
puts "============"
puts "CR25207"
puts "==========="
puts ""
###############################################################################
# GCPnts_QuasiUniformDeflection achieves incorrect result on some curve.
###############################################################################

restore [locate_data_file bug25207_DumpShape2.brep] cc
mkcurve cc cc

set info [crvpoints r cc 1.e-3]

set str1 "Nb points +: +(\[-0-9.+eE\]+)\n"
set str2 "Max defl: +(\[-0-9.+eE\]+) +(\[-0-9.+eE\]+) +(\[-0-9.+eE\]+) +(\[-0-9.+eE\]+)"

regexp "${str1}${str2}" ${info} full Nb dmax ufmax ulmax i

set expected_Nb 76
if { ${Nb} != ${expected_Nb} } {
    puts "Error : bad value of Nb points=${Nb}"
}

set tol_abs 1.0e-05
set tol_rel 0.01

set expected_dmax 0.0013771610718045313
set expected_ufmax 0.890625

checkreal "dmax" ${dmax} ${expected_dmax} ${tol_abs} ${tol_rel}
checkreal "ufmax" ${ufmax} ${expected_ufmax} ${tol_abs} ${tol_rel}

set expected_ulmax 0.90625
if { ${ulmax} != ${expected_ulmax} } {
    puts "Error : bad value of ulmax=${ulmax}"
}
set expected_i 69
if { ${i} != ${expected_i} } {
    puts "Error : bad value of i=${i}"
}