1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-10 18:51:21 +03:00
occt/tests/bugs/modalg_6/bug28207
isn 1f59dfa9c2 0028681: UnifySameDomain distorts face boundary when merges a chain of small linear edges
In case of sequence of edges based on lines (which are going to be unified into one line-segment), take into account a linear tolerance  value.
Get rid of regressions.
Updates of USD-tests.
2018-01-12 12:25:02 +03:00

42 lines
1.1 KiB
Plaintext

puts "========"
puts "OCC28207"
puts "========"
puts ""
#########################################################
## Unexpected result of the unify same domain algorithm
#########################################################
restore [locate_data_file bug28207_face.brep] s1
unifysamedom result1 s1
checkshape result1
checknbshapes result1 -face 1 -wire 1 -edge 984
checkprops result1 -l 10402.1
#safeInputMode is true for USD
unifysamedom result2 s1 -a 0.001
checkshape result2
checknbshapes result2 -face 1 -wire 1 -edge 983
checkprops result2 -l 10402.1
unifysamedom result3 s1 -a 1.0
checkshape result3
checknbshapes result3 -face 1 -wire 1 -edge 983
checkprops result3 -l 10402.1
unifysamedom result4 s1 -t 0.01 -a 0.1
checkshape result4
checknbshapes result4 -face 1 -wire 1 -edge 510
checkprops result4 -l 10402.1
unifysamedom result5 s1 -t 0.1 -a 0.1
checkshape result5
checknbshapes result5 -face 1 -wire 1 -edge 198
checkprops result5 -l 10402.1
unifysamedom result6 s1 -t 1.0 -a 0.1
checkshape result6
checknbshapes result6 -face 1 -wire 1 -edge 65
checkprops result6 -l 10401.9
checkview -display result1 -2d -path ${imagedir}/${test_image}.png