mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-03 17:56:21 +03:00
Bnd_OBB constructor from Bnd_Box is fixed for VOID input. DRAW command bounding command is adjusted: - Support of old syntax 'bounding shape'is restored. - Exception on VOID bounding box is avoided. - Arguments are handled in case-insensitive way. - Options -s, -perfmeter, and ability to set result as first argument are removed as redundant. - Help is moved to command definition. Separate command OCC29311 is added (in QADraw) to do the same as option -perfmeter did; tests are updated.
33 lines
783 B
Plaintext
Executable File
33 lines
783 B
Plaintext
Executable File
puts "============"
|
|
puts "OCC2442"
|
|
puts "============"
|
|
puts ""
|
|
######################################################
|
|
# Error in BRepClass3d_SolidClassifier
|
|
######################################################
|
|
|
|
restore [locate_data_file OCC2442-1.brep] a
|
|
restore [locate_data_file OCC2442-2.brep] b
|
|
|
|
distmini dm1 a b
|
|
set dist1 [dval dm1_val]
|
|
|
|
explode a
|
|
explode b
|
|
distmini dm2 a_1 b_1
|
|
set dist2 [dval dm2_val]
|
|
|
|
set good_dist 18.4816355578064
|
|
|
|
set tol_abs 1.e-7
|
|
set tol_rel 1.e-7
|
|
|
|
checkreal "Distance 1 " ${dist1} ${good_dist} ${tol_abs} ${tol_rel}
|
|
checkreal "Distance 2 " ${dist2} ${good_dist} ${tol_abs} ${tol_rel}
|
|
|
|
bounding a -save x0 y0 z0 x1 y1 z1 -nodraw
|
|
ttranslate a -x0 -y0 -z0
|
|
ttranslate b -x0 -y0 -z0
|
|
|
|
checkview -display a -with b -2d -path ${imagedir}/${test_image}.png
|