1
0
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:
emv
2016-11-03 12:58:25 +03:00
committed by apn
parent ecf4f17cb8
commit c2bf27a6fb
8 changed files with 246 additions and 55 deletions

View 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

View 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

View 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

View 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

View 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

View 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

View 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