mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03:00
0026889: Very poor mesh result from shape
Adding test case for the problem. The issue has been fixed by a patch for #26106.
This commit is contained in:
parent
70bc8e4a71
commit
a385e6d1cd
29
tests/perf/mesh/bug26889_1
Normal file
29
tests/perf/mesh/bug26889_1
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
puts "========="
|
||||||
|
puts "0026889: Very poor mesh result from shape"
|
||||||
|
puts "========="
|
||||||
|
puts ""
|
||||||
|
|
||||||
|
pload XDE
|
||||||
|
|
||||||
|
stepread [locate_data_file bug26889_export.step] a *
|
||||||
|
|
||||||
|
dchrono t restart
|
||||||
|
incmesh a_1 0.01 1
|
||||||
|
dchrono t stop counter incmesh
|
||||||
|
|
||||||
|
checktrinfo a_1 -tri 743149 -nod 372395 -defl 0.081028355715069861
|
||||||
|
|
||||||
|
set log [tricheck a_1]
|
||||||
|
if { [llength $log] != 0 } {
|
||||||
|
puts "Error : Invalid mesh"
|
||||||
|
} else {
|
||||||
|
puts "Mesh is OK"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
vinit
|
||||||
|
vdefaults -autoTriang 0
|
||||||
|
vsetdispmode 1
|
||||||
|
vdisplay a_1
|
||||||
|
vfit
|
||||||
|
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
@ -1,25 +1,28 @@
|
|||||||
puts "========="
|
puts "========="
|
||||||
puts "CR26889"
|
puts "0026889: Very poor mesh result from shape"
|
||||||
puts "========="
|
puts "========="
|
||||||
puts ""
|
puts ""
|
||||||
###############################################
|
|
||||||
# Very poor mesh result from shape
|
|
||||||
###############################################
|
|
||||||
|
|
||||||
pload XDE
|
pload XDE
|
||||||
|
|
||||||
stepread [locate_data_file bug26889_export.step] a *
|
stepread [locate_data_file bug26889_export.step] a *
|
||||||
|
|
||||||
dlog reset
|
|
||||||
dlog on
|
|
||||||
|
|
||||||
dchrono t restart
|
dchrono t restart
|
||||||
incmesh a_1 0.1 1
|
incmesh a_1 0.1 1
|
||||||
dchrono t stop counter incmesh
|
dchrono t stop counter incmesh
|
||||||
|
|
||||||
checktrinfo a_1 -tri -nod
|
checktrinfo a_1 -tri 182273 -nod 91484 -defl 0.11671770612283024
|
||||||
|
|
||||||
|
set log [tricheck a_1]
|
||||||
|
if { [llength $log] != 0 } {
|
||||||
|
puts "Error : Invalid mesh"
|
||||||
|
} else {
|
||||||
|
puts "Mesh is OK"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
vinit
|
vinit
|
||||||
|
vdefaults -autoTriang 0
|
||||||
vsetdispmode 1
|
vsetdispmode 1
|
||||||
vdisplay a_1
|
vdisplay a_1
|
||||||
vfit
|
vfit
|
29
tests/perf/mesh/bug26889_3
Normal file
29
tests/perf/mesh/bug26889_3
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
puts "========="
|
||||||
|
puts "0026889: Very poor mesh result from shape"
|
||||||
|
puts "========="
|
||||||
|
puts ""
|
||||||
|
|
||||||
|
pload XDE
|
||||||
|
|
||||||
|
stepread [locate_data_file bug26889_export.step] a *
|
||||||
|
|
||||||
|
dchrono t restart
|
||||||
|
incmesh a_1 1.0 1
|
||||||
|
dchrono t stop counter incmesh
|
||||||
|
|
||||||
|
checktrinfo a_1 -tri 73119 -nod 36828 -defl 1.0
|
||||||
|
|
||||||
|
set log [tricheck a_1]
|
||||||
|
if { [llength $log] != 0 } {
|
||||||
|
puts "Error : Invalid mesh"
|
||||||
|
} else {
|
||||||
|
puts "Mesh is OK"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
vinit
|
||||||
|
vdefaults -autoTriang 0
|
||||||
|
vsetdispmode 1
|
||||||
|
vdisplay a_1
|
||||||
|
vfit
|
||||||
|
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
Loading…
x
Reference in New Issue
Block a user