mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-29 14:00:49 +03:00
0028050: Empty result of offset operation in mode complete join type intersection
1. BRepOffset_Inter3d::ConnexIntByInt Create unique offset edge for each localized part shared between pair of faces of the input shape. 2. Test cases for the issue.
This commit is contained in:
10
tests/offset/shape_type_i_c/XK3
Normal file
10
tests/offset/shape_type_i_c/XK3
Normal file
@@ -0,0 +1,10 @@
|
||||
restore [locate_data_file bug26917_rm-104_input_3.brep] s
|
||||
|
||||
OFFSETSHAPE 5 {} $calcul $type
|
||||
|
||||
checkprops result -v 7.92115e+007 -s 7.499e+006
|
||||
|
||||
unifysamedom result_unif result
|
||||
checknbshapes result_unif -face 2010 -shell 1
|
||||
|
||||
checkview -display result_unif -2d -path ${imagedir}/${test_image}.png
|
21
tests/offset/shape_type_i_c/XK4
Normal file
21
tests/offset/shape_type_i_c/XK4
Normal file
@@ -0,0 +1,21 @@
|
||||
restore [locate_data_file bug26917_rm-104_input_3_with_faces.brep] c
|
||||
|
||||
# get the shape
|
||||
explode c
|
||||
copy c_1 s
|
||||
|
||||
offsetparameter 1e-7 c i
|
||||
offsetload s 5
|
||||
|
||||
foreach f [explode c_2 f] {
|
||||
offsetonface $f 2
|
||||
}
|
||||
|
||||
offsetperform result
|
||||
|
||||
checkprops result -v 7.11183e+007 -s 7.46447e+006
|
||||
|
||||
unifysamedom result_unif result
|
||||
checknbshapes result_unif -face 2010 -shell 1
|
||||
|
||||
checkview -display result_unif -2d -path ${imagedir}/${test_image}.png
|
14
tests/offset/shape_type_i_c/XK5
Normal file
14
tests/offset/shape_type_i_c/XK5
Normal file
@@ -0,0 +1,14 @@
|
||||
restore [locate_data_file bug26917_rm-104_input_3_trim1_with_faces.brep] c
|
||||
|
||||
#get the shape
|
||||
explode c
|
||||
copy c_1 s
|
||||
|
||||
OFFSETSHAPE 5 {} $calcul $type
|
||||
|
||||
checkprops result -v 4.14439e+007 -s 3.99357e+006
|
||||
|
||||
unifysamedom result_unif result
|
||||
checknbshapes result_unif -face 1067 -shell 1
|
||||
|
||||
checkview -display result_unif -2d -path ${imagedir}/${test_image}.png
|
21
tests/offset/shape_type_i_c/XK6
Normal file
21
tests/offset/shape_type_i_c/XK6
Normal file
@@ -0,0 +1,21 @@
|
||||
restore [locate_data_file bug26917_rm-104_input_3_trim1_with_faces.brep] c
|
||||
|
||||
#get the shape
|
||||
explode c
|
||||
copy c_1 s
|
||||
|
||||
offsetparameter 1e-7 c i
|
||||
offsetload s 5
|
||||
|
||||
foreach f [explode c_2 f] {
|
||||
offsetonface $f 2
|
||||
}
|
||||
|
||||
offsetperform result
|
||||
|
||||
checkprops result -v 3.7122e+007 -s 3.97038e+006
|
||||
|
||||
unifysamedom result_unif result
|
||||
checknbshapes result_unif -face 1067 -shell 1
|
||||
|
||||
checkview -display result_unif -2d -path ${imagedir}/${test_image}.png
|
14
tests/offset/shape_type_i_c/XK7
Normal file
14
tests/offset/shape_type_i_c/XK7
Normal file
@@ -0,0 +1,14 @@
|
||||
restore [locate_data_file bug26917_rm-104_input_3_trim2_with_faces.brep] c
|
||||
|
||||
#get the shape
|
||||
explode c
|
||||
copy c_1 s
|
||||
|
||||
OFFSETSHAPE 5 {} $calcul $type
|
||||
|
||||
checkprops result -v 3.79514e+007 -s 3.57457e+006
|
||||
|
||||
unifysamedom result_unif result
|
||||
checknbshapes result_unif -face 941 -shell 1
|
||||
|
||||
checkview -display result_unif -2d -path ${imagedir}/${test_image}.png
|
21
tests/offset/shape_type_i_c/XK8
Normal file
21
tests/offset/shape_type_i_c/XK8
Normal file
@@ -0,0 +1,21 @@
|
||||
restore [locate_data_file bug26917_rm-104_input_3_trim2_with_faces.brep] c
|
||||
|
||||
#get the shape
|
||||
explode c
|
||||
copy c_1 s
|
||||
|
||||
offsetparameter 1e-7 c i
|
||||
offsetload s 5
|
||||
|
||||
foreach f [explode c_2 f] {
|
||||
offsetonface $f 2
|
||||
}
|
||||
|
||||
offsetperform result
|
||||
|
||||
checkprops result -v 3.413e+007 -s 3.55307e+006
|
||||
|
||||
unifysamedom result_unif result
|
||||
checknbshapes result_unif -face 941 -shell 1
|
||||
|
||||
checkview -display result_unif -2d -path ${imagedir}/${test_image}.png
|
10
tests/offset/shape_type_i_c/XK9
Normal file
10
tests/offset/shape_type_i_c/XK9
Normal file
@@ -0,0 +1,10 @@
|
||||
restore [locate_data_file bug26917_rm-104_input_3_trim10.brep] s
|
||||
|
||||
OFFSETSHAPE 5 {} $calcul $type
|
||||
|
||||
checkprops result -v 220856 -s 32106.9
|
||||
|
||||
unifysamedom result_unif result
|
||||
checknbshapes result_unif -face 13 -shell 1
|
||||
|
||||
checkview -display result_unif -2d -path ${imagedir}/${test_image}.png
|
Reference in New Issue
Block a user