1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-16 10:08:36 +03:00

0025055: Modeling Algorithms - Incorrect shape copying in BRepBuilderAPI_Copy

Correct test case: exclude "fixshape" calls
This commit is contained in:
akaftasev 2021-01-11 16:58:51 +03:00 committed by bugmaster
parent be8c9f2bde
commit 607f045954

View File

@ -2,24 +2,28 @@ puts "##################################################"
puts "0025055: Incorrect shape copying in BRepBuilderAPI_Copy" puts "0025055: Incorrect shape copying in BRepBuilderAPI_Copy"
puts "##################################################" puts "##################################################"
vclear
vinit View1
vdefaults -autoTriang 0
# load and check shape # load and check shape
restore [locate_data_file bug25055.brep] a restore [locate_data_file bug25055.brep] a
tolerance a tcopy a b
# call fixshape tclean a
fixshape aa a 1e-3 incmesh a 0.1
checkshape aa
tcopy aa b
checkshape b
tclean result regexp {([0-9]+) +triangles.*[^0-9]([0-9]+) +nodes} [trinfo a] full NbTrian_1 NbNodes_1
incmesh aa 0.1
regexp {([0-9]+) +triangles.*[^0-9]([0-9]+) +nodes} [trinfo aa] full NbTrian_1 NbNodes_1
tclean result tclean b
incmesh b 0.1 incmesh b 0.1
vclear
vdisplay -dispMode 1 b
vfit
vdump ${imagedir}/${test_image}.png
set info_good [tricheck b] set info_good [tricheck b]
if { [string compare $info_good "" ] != 0 } { if { [string compare $info_good "" ] != 0 } {
puts "Error : Result tricheck is BAD" puts "Error : Result tricheck is BAD"
@ -27,5 +31,3 @@ if { [string compare $info_good "" ] != 0 } {
checktrinfo b -tri ${NbTrian_1} -nod ${NbNodes_1} checktrinfo b -tri ${NbTrian_1} -nod ${NbNodes_1}
checkview -display b -2d -path ${imagedir}/${test_image}.png