1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-21 10:13:43 +03:00
azv 5520ae9665 Extract of fixes from 0024682: Move out B-spline cache from curves and surfaces to dedicated classes BSplCLib_Cache and BSplSLib_Cache
4. Precised calculation of derivatives of surface of revolution is implemented for the points of surface placed on the axis of revolution (Geom_SurfaceOfRevolution.cxx)

5. Small modifications are made to adjust algorithms to new behavior of B-spline calculation.

6. Test cases were modified according to the modern behavior.

7. Changes in BRepLib_CheckCurveOnSurface to use adaptors instead of geometric entities

9. Added methods to access directly poles, knots, multiplicities of BSpline curves and surfaces
2015-08-23 23:21:30 +03:00

47 lines
867 B
Plaintext
Executable File

puts "========="
puts " OCC498 "
puts "========="
puts ""
######################################
## Wrong 3d point from offset surface by parameters
######################################
restore [locate_data_file OCC498.draw] su
set u1 4.71238898038469
set u2 7.85398163397449
svalue su 0 $u1 x1 y1 z1
vertex v1 x1 y1 z1
svalue su 0 $u2 x2 y2 z2
vertex v2 x2 y2 z2
set newU1 [expr $u1 - 1e-11]
set newU2 [expr $u2 + 1e-11]
svalue su 0 $newU1 x1 y1 z1
vertex vv1 x1 y1 z1
svalue su 0 $newU2 x2 y2 z2
vertex vv2 x2 y2 z2
distmini d v1 vv1
regexp {([-0-9.+eE]+)} [dump d_val] full err1
distmini d v2 vv2
regexp {([-0-9.+eE]+)} [dump d_val] full err2
if { $err1 > 1.e-7 || $err2 > 1.e-7} {
puts "Faulty OCC498: Wrong 3d point from offset surface by parameters "
} else {
puts "OCC498 OK: Correct 3d point from offset surface by parameters"
}