1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

Compare commits

...

12 Commits

Author SHA1 Message Date
nbv
539ce84c00 0027845: BRepMesh produces invalid result on spline cavity
Adding test case for the problem.
The issue has been fixed by a patch for #26106.
2018-11-08 15:48:22 +03:00
nbv
5532f0f8c8 0029751: Incremental mesh produces different meshes for windows and linux (debian 8)
Adding test case for the problem.
The issue has been fixed by a patch for #26106.
2018-11-08 15:48:22 +03:00
nbv
4543976f1e 0027158: BRepMesh manage vertex tolerance in parametric space in improper way
Adding test case for the problem.
The issue has been fixed by a patch for #26106.
2018-11-08 15:48:21 +03:00
nbv
1fa718bdb4 0023795: Performance regression of meshing
Adding test case for the problem.
The issue has been fixed by a patch for #26106.
2018-11-08 15:48:20 +03:00
nbv
3f1c8717ef 0026928: Edges are meshed too coarsly
Adding test case for the problem.
The issue has been fixed by a patch for #26106.
2018-11-08 15:48:19 +03:00
nbv
a5363e3218 0023513: BRepMesh doesn't stop until out-of-memory
Adding test case for the problem.
The issue has been fixed by a patch for #26106.
2018-11-08 15:48:18 +03:00
nbv
0c32ae187b 0026889: Very poor mesh result from shape
Adding test case for the problem.
The issue has been fixed by a patch for #26106.
2018-11-08 15:48:18 +03:00
nbv
6a0d093180 0029962: Master version of BRepMesh does not respect obvious details despite of specified deflection
Adding test case for the problem.
The issue has been fixed by a patch for #26106.
2018-11-08 15:48:17 +03:00
nbv
daac27a161 0029685: Meshing - BRepMesh does not respect requested deflection
Adding test case for the problem.
The issue has been fixed by a patch for #26106.
2018-11-08 15:38:23 +03:00
nbv
0b189470be 0027693: BRepMesh: fine edge tessellation leads to excess number of triangles along the whole U or V stripes
Adding test case for the problem.
The issue has been fixed by a patch for #26106.
2018-11-08 10:05:45 +03:00
nbv
7eb49de429 0026965: BRepMesh_IncrementalMesh hangs, and consumes infinite memory
Adding test case for the problem.
The issue has been fixed by a patch for #26106.
2018-11-07 17:03:24 +03:00
nbv
86f8494db3 0029205: BRepMesh skips some edges and generates invalid triangulation for the face
Adding test case for the problem.
The issue has been fixed by a patch for #26106.
2018-11-07 17:03:16 +03:00
14 changed files with 314 additions and 78 deletions

22
tests/bugs/mesh/bug23513 Normal file
View File

@@ -0,0 +1,22 @@
puts "=========="
puts "0023513: BRepMesh doesn't stop until out-of-memory"
puts "=========="
puts ""
restore [locate_data_file bug23513_infface.brep] result
vinit
vsetdispmode 1
vdisplay result
vfit
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
checktrinfo result -tri 323648 -nod 161865 -defl 0.00096399964870812682
set log [tricheck result]
if { [llength $log] != 0 } {
puts "Error : Invalid mesh"
} else {
puts "Mesh is OK"
}

View File

@@ -1,96 +1,34 @@
puts "TODO CR26928 All: Error: Edges are meshed too coarsly"
puts "REQUIRED CR26928 All: Error : Colors are not equal in default coordinate and in the near coordinates too"
puts "========="
puts "CR26928"
puts "0026928: Edges are meshed too coarsly"
puts "========="
puts ""
###############################
# Edges are meshed too coarsly
###############################
restore [locate_data_file bug27356_comp.brep] c
set x 168
set y 298
tclean c
vinit
vdisplay c
vviewparams -scale 17.2151 -proj 0.68553 -0.268225 -0.676834 -up -0.664339 0.149845 -0.732257 -at 33.3169 24.0699 29.5546
vviewparams -scale 44.578446 -proj 8.964134e-4 0.055037 -0.998484 -up -0.951475 0.307306 0.016085 -at 44.487383 37.608231 -3.232527 -eye 44.517406 37.608231 -3.232527
vsetdispmode c 1
checkview -screenshot -3d -path ${imagedir}/${test_image}-vdisplay.png
if { [checkcolor $x $y 1 0 0] == 1 } {
puts ""
puts "vdisplay.png"
puts "Error: Edges are meshed too coarsly"
puts ""
} else {
puts ""
puts "vdisplay.png"
puts "OK: Edges are meshed good"
puts ""
}
tclean c
vdefaults -autoTriang 0
incmesh c 0.715 -a 11.459
vdisplay -redisplay c
vviewparams -scale 17.2151 -proj 0.68553 -0.268225 -0.676834 -up -0.664339 0.149845 -0.732257 -at 33.3169 24.0699 29.5546
checkview -screenshot -3d -path ${imagedir}/${test_image}-0715.png
if { [checkcolor $x $y 1 0 0] == 1 } {
puts ""
puts "0715.png"
puts "Error: Edges are meshed too coarsly"
puts ""
} else {
puts ""
puts "0715.png"
puts "OK: Edges are meshed good"
puts ""
}
tclean c
incmesh c 0.5 -a 11.459
vdisplay -redisplay c
vviewparams -scale 17.2151 -proj 0.68553 -0.268225 -0.676834 -up -0.664339 0.149845 -0.732257 -at 33.3169 24.0699 29.5546
checkview -screenshot -3d -path ${imagedir}/${test_image}-05.png
if { [checkcolor $x $y 1 0 0] == 1 } {
puts ""
puts "05.png"
puts "Error: Edges are meshed too coarsly"
puts ""
} else {
puts ""
puts "05.png"
puts "OK: Edges are meshed good"
puts ""
}
tclean c
incmesh c 0.3 -a 11.459
vdisplay -redisplay c
vviewparams -scale 17.2151 -proj 0.68553 -0.268225 -0.676834 -up -0.664339 0.149845 -0.732257 -at 33.3169 24.0699 29.5546
checkview -screenshot -3d -path ${imagedir}/${test_image}-03.png
if { [checkcolor $x $y 1 0 0] == 1 } {
puts ""
puts "03.png"
puts "Error: Edges are meshed too coarsly"
puts ""
} else {
puts ""
puts "03.png"
puts "OK: Edges are meshed good"
puts ""
}
tclean c
incmesh c 0.1 -a 11.459
vdisplay -redisplay c
vviewparams -scale 17.2151 -proj 0.68553 -0.268225 -0.676834 -up -0.664339 0.149845 -0.732257 -at 33.3169 24.0699 29.5546
checkview -screenshot -3d -path ${imagedir}/${test_image}-01.png
if { [checkcolor $x $y 1 0 0] == 1 } {
puts ""
puts "01.png"
puts "Error: Edges are meshed too coarsly"
puts ""
} else {
puts ""
puts "01.png"
puts "OK: Edges are meshed good"
puts ""
}

19
tests/bugs/mesh/bug27158 Normal file
View File

@@ -0,0 +1,19 @@
puts "========"
puts "0027158: BRepMesh manage vertex tolerance in parametric space in improper way"
puts "========"
puts ""
set BugNumber OCC27158
restore [locate_data_file bug27158_ZoneB_25.brep] result
tclean result
checkview -display result -3d -path ${imagedir}/${test_image}.png
set log [tricheck result]
if { [llength $log] != 0 } {
puts "Error : Invalid mesh"
} else {
puts "Mesh is OK"
}

21
tests/bugs/mesh/bug27693 Normal file
View File

@@ -0,0 +1,21 @@
puts "======="
puts "0027693: BRepMesh: fine edge tessellation leads to excess number of triangles along the whole U or V stripes"
puts "======="
puts ""
pload XDE
stepread [locate_data_file bug27693_cornetta-step.stp] a *
renamevar a_1 a
explode a f
copy a_4 f
don f
incmesh f 0.01 -a 90
isos f 0
triangles f
checktrinfo f -tri 2220 -nod 1232 -defl 0.0093553610383019445
smallview +X+Y
fit
checkview -screenshot -2d -path ${imagedir}/${test_image}.png

24
tests/bugs/mesh/bug27845 Normal file
View File

@@ -0,0 +1,24 @@
puts "=========="
puts "0027845: BRepMesh produces invalid result on spline cavity"
puts "=========="
puts ""
restore [locate_data_file bug27845_shape.brep] result
tclean result
incmesh result 10 -a 180
vinit
vsetdispmode 1
vdefaults -autoTriang 0
vdisplay result
vfit
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
checktrinfo result -tri 3006 -nod 4360 -defl 10
set log [tricheck result]
if { [llength $log] != 0 } {
puts "Error : Invalid mesh"
} else {
puts "Mesh is OK"
}

24
tests/bugs/mesh/bug29205 Normal file
View File

@@ -0,0 +1,24 @@
puts "=========="
puts "0029205: BRepMesh skips some edges and generates invalid triangulation for the face"
puts "=========="
puts ""
restore [locate_data_file bug29205_face.brep] result
incmesh result 0.4
vinit
vsetdispmode 1
vdefaults -autoTriang 0
vdisplay result
vviewparams -scale 67.9853 -proj 0.680425 -0.732509 -0.0212714 -up -0.0316277 -0.0583539 0.997795 -at 10.7708 -10.3962 6.25 -eye 18.2017 -18.3959 6.01769
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
checktrinfo result -tri 8 -nod 10 -defl 6.8481042509220045e-05
set log [tricheck result]
if { [llength $log] != 0 } {
puts "Error : Invalid mesh"
} else {
puts "Mesh is OK"
}

21
tests/bugs/mesh/bug29685 Normal file
View File

@@ -0,0 +1,21 @@
puts "======="
puts "0029685: Meshing - BRepMesh does not respect requested deflection"
puts "======="
puts ""
restore [locate_data_file bug29685_shape_to_render.brep] result
vinit
vsetdispmode 1
vdisplay result
vviewparams -scale 17.5502 -proj 0.57735 -0.57735 0.57735 -up -0.408248 0.408248 0.816497 -at 5.1597 115.661 188.336 -eye 43.2805 77.5402 226.457
set log [tricheck result]
if { [llength $log] != 0 } {
puts "Error : Invalid mesh"
} else {
puts "Mesh is OK"
}
checktrinfo result -tri 148 -nod 103 -defl 0.27179801813852145
checkview -screenshot -3d -path ${imagedir}/${test_image}.png

29
tests/bugs/mesh/bug29751 Normal file
View File

@@ -0,0 +1,29 @@
puts "======="
puts "0029751: Incremental mesh produces different meshes for windows and linux (debian 8)"
puts "======="
puts ""
psphere sp 10
pcylinder b1 2 10
ttranslate b1 0 0 -10
bcut result sp b1
trotate result 0 0 0 1 0 0 45
incmesh result 0.1
vinit
vdefaults -autoTriang 0
vdisplay result
vsetinteriorstyle 1
vsetdispmode 1
vfit
set log [tricheck result]
if { [llength $log] != 0 } {
puts "Error : Invalid mesh"
} else {
puts "Mesh is OK"
}
checktrinfo result -tri 1013 -nod 578 -defl 0.1
checkview -screenshot -3d -path ${imagedir}/${test_image}.png

39
tests/bugs/mesh/bug29962 Normal file
View File

@@ -0,0 +1,39 @@
puts "======="
puts "0029962: Master version of BRepMesh does not respect obvious details despite of specified deflection"
puts "======="
puts ""
bsplinesurf s 4 5 0 5 1 1 2 1 3 1 4 5 4 5 0 5 1 1 2 1 3 1 4 5 0 0 0 1 10 0 0 1 20 0 0 1 30 0 0 1 40 0 0 1 50 0 0 1 60 0 0 1 70 0 0 1 0 10 0 1 10 10 999 1 20 10 0 1 30 10 0 1 40 10 0 1 50 10 0 1 60 10 0 1 70 10 0 1 0 20 0 1 10 20 0 1 20 20 0 1 30 20 0 1 40 20 0 1 50 20 0 1 60 20 0 1 70 20 0 1 0 30 0 1 10 30 0 1 20 30 0 1 30 30 0 1 40 30 0 1 50 30 0 1 60 30 0 1 70 30 0 1 0 40 0 1 10 40 0 1 20 40 0 1 30 40 0 1 40 40 0 1 50 40 0 1 60 40 0 1 70 40 0 1 0 50 0 1 10 50 0 1 20 50 0 1 30 50 0 1 40 50 0 1 50 50 0 1 60 50 0 1 70 50 0 1 0 60 0 1 10 60 0 1 20 60 0 1 30 60 0 1 40 60 0 1 50 60 0 1 60 60 999 1 70 60 0 1 0 70 0 1 10 70 0 1 20 70 0 1 30 70 0 1 40 70 0 1 50 70 0 1 60 70 0 1 70 70 0 1
mkface result s
incmesh result 100
set log1 [tricheck result]
if { [llength $log1] != 0 } {
puts "Error : Invalid mesh"
} else {
puts "Mesh is OK"
}
checktrinfo result -tri 2 -nod 4 -defl 0.0
tclean result
incmesh result 0.01
set log2 [tricheck result]
if { [llength $log2] != 0 } {
puts "Error : Invalid mesh"
} else {
puts "Mesh is OK"
}
checktrinfo result -tri 78186 -nod 39096 -defl 0.035123046705520911
don result
isos result 0
triangles result
smallview
fit
checkview -screenshot -2d -path ${imagedir}/${test_image}.png

19
tests/perf/mesh/bug23795 Normal file
View File

@@ -0,0 +1,19 @@
puts "========="
puts "0023795: Performance regression of meshing"
puts "========="
puts ""
restore [locate_data_file bug23795_s.brep] result
dchrono t restart
incmesh result 0.1
dchrono t stop counter MeshBug23795
checktrinfo result -tri 10992 -nod 11016 -defl 0.1
vinit
vdefaults -autoTriang 0
vsetdispmode 1
vdisplay result
vfit
checkview -screenshot -3d -path ${imagedir}/${test_image}.png

View 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

View File

@@ -1,25 +1,28 @@
puts "========="
puts "CR26889"
puts "0026889: Very poor mesh result from shape"
puts "========="
puts ""
###############################################
# Very poor mesh result from shape
###############################################
pload XDE
stepread [locate_data_file bug26889_export.step] a *
dlog reset
dlog on
dchrono t restart
incmesh a_1 0.1 1
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
vdefaults -autoTriang 0
vsetdispmode 1
vdisplay a_1
vfit

View 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

19
tests/perf/mesh/bug26965 Normal file
View File

@@ -0,0 +1,19 @@
puts "=========="
puts "0026965: BRepMesh_IncrementalMesh hangs, and consumes infinite memory"
puts "=========="
puts ""
restore [locate_data_file bug26965_mesh_hang.brep] a
tclean a
vinit
vsetdispmode 1
dchrono h restart
vdisplay a
dchrono h stop counter DisplayBug26965
dchrono h
vfit
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
checktrinfo a -tri 217070 -nod 108740 -defl 0.098772787476728782