1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-13 14:27:08 +03:00

0029102: Missing points using GCPnts_QuasiUniformDeflection

Correct the method PerformCurve of GCPnts_QuasiUniformDeflection to get the proper derivative at the end of the current curve.

Improve the Draw commands "crvpoints" and "crvtpoints" so that to work with wires as composite curves.
This commit is contained in:
msv
2017-09-13 11:38:23 +03:00
parent fedf4bc000
commit ddafad10ec
3 changed files with 78 additions and 18 deletions

View File

@@ -0,0 +1,23 @@
puts "======="
puts "0029102"
puts "======="
puts ""
##################################################
# Missing points using GCPnts_QuasiUniformDeflection
##################################################
brestore [locate_data_file bug29102_Wire.brep] w
set info [crvpoints r w 0.0005]
regexp "Max defl: +(\[-0-9.+eE\]+)" $info full defl
if {$defl > 0.0006} {
puts "Error: deflection $defl is greater than expected 0.0005"
} else {
puts "OK: deflection $defl is within limit 0.0006"
}
smallview +X+Y
fit
set only_screen_axo 1