mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-03 17:56:21 +03:00
0032960: Wrong result of BRepExtrema_DistShapeShape after translation.
Add corresponding test.
This commit is contained in:
parent
526c506cb0
commit
d6baf70a93
16
tests/bugs/fclasses/bug32960
Normal file
16
tests/bugs/fclasses/bug32960
Normal file
@ -0,0 +1,16 @@
|
||||
puts "========"
|
||||
puts "OCC32960: Wrong result of BRepExtrema_DistShapeShape after translation"
|
||||
puts "========"
|
||||
# Correct distance is 1.0
|
||||
|
||||
restore [locate_data_file bug32960.brep] aShape
|
||||
explode aShape
|
||||
set anInfo [distmini d aShape_1 aShape_2]
|
||||
|
||||
# Check extrema distance
|
||||
set absTol 1.0e-7
|
||||
set relTol 1.0e-7
|
||||
set aDist_Exp 1.0
|
||||
set aDist [dval d_val]
|
||||
checkreal "Distance value check" $aDist $aDist_Exp $absTol $relTol
|
||||
|
Loading…
x
Reference in New Issue
Block a user