Skip to content

Commit 9967602

Browse files
emvsmoskvin
authored andcommitted
0032333: Modeling Algorithms - Empty(wrong) result of offset operation in mode "Complete" join type "Intersection"
Add more faces for intersection in rebuilding process basing on the connection of the splits of offset faces (special treatment for the artificially invalid faces). When rebuilding faces add vertices common for faces for trimming the new intersection edges. Adjust existing and create new test cases.
1 parent e1a92d9 commit 9967602

27 files changed

Lines changed: 673 additions & 128 deletions

File tree

src/BRepOffset/BRepOffset_MakeOffset_1.cxx

Lines changed: 357 additions & 81 deletions
Large diffs are not rendered by default.

tests/offset/shape_type_i_c/K9

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
restore [locate_data_file bug25926_before_offset.brep] s
22

3-
OFFSETSHAPE 50 {} $calcul $type
3+
explode s so
4+
offsetparameter 1e-7 c i r
5+
offsetload s_1 50
6+
offsetperform result
47

5-
checkprops result -v 3.68672e+008
8+
checkprops result -s 4.96128e+06 -v 3.68655e+08
69

7-
checknbshapes result -shell 1
10+
unifysamedom result_unif result
11+
checknbshapes result_unif -wire 12 -face 12 -shell 1 -solid 1

tests/offset/shape_type_i_c/P8

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
restore [locate_data_file bug25926_before_offset_trim1.brep] s
22

3-
OFFSETSHAPE 50 {} $calcul $type
3+
offsetparameter 1e-7 c i r
4+
offsetload s 50
5+
offsetperform result
46

5-
checkprops result -v 3.61993e+007
6-
checkprops result -s 696458
7+
checkprops result -s 694900 -v 3.6175e+07
78

8-
checknbshapes result -shell 1
9+
unifysamedom result_unif result
10+
checknbshapes result_unif -wire 9 -face 9 -shell 1 -solid 1

tests/offset/shape_type_i_c/Q9

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ restore [locate_data_file bug25926_offset_shape_trim3.brep] s
77

88
OFFSETSHAPE 12 {} $calcul $type
99

10-
checkprops result -v 948181 -s 66208.6
10+
checkprops result -v 948181 -s 66208.6 -deps 1.e-3
1111

1212
unifysamedom result_unif result
1313
checknbshapes result_unif -shell 1 -face 14

tests/offset/shape_type_i_c/XB7

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
puts "TODO CR27414 ALL: Error : is WRONG because number of FACE entities in shape"
2-
31
restore [locate_data_file bug26917_dom-8092_trim3.brep] s
42

53
offsetparameter 1e-7 $calcul $type

tests/offset/shape_type_i_c/XB8

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
puts "TODO CR27414 ALL: Error : is WRONG because number of FACE entities in shape"
2-
31
restore [locate_data_file bug26917_dom-8092_trim4.brep] s
42

53
offsetparameter 1e-7 $calcul $type

tests/offset/shape_type_i_c/XB9

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
puts "TODO CR27414 ALL: Error : is WRONG because number of FACE entities in shape"
2-
31
restore [locate_data_file bug26917_dom-8092_simple.brep] s
42

53
offsetparameter 1e-7 $calcul $type

tests/offset/shape_type_i_c/XD3

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ restore [locate_data_file bug26917_25926_offset_shape_trim4.brep] s
77

88
OFFSETSHAPE 12 {} $calcul $type
99

10-
checkprops result -v 643336 -s 45602.9
10+
checkprops result -v 643336 -s 45602.9 -deps 1.e-3
1111

1212
unifysamedom result_unif result
1313
checknbshapes result_unif -shell 1 -face 8

tests/offset/shape_type_i_c/XJ7

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
puts "TODO OCC27414 ALL: Error: The command cannot be built"
2-
puts "TODO OCC27414 ALL: Tcl Exception"
3-
puts "TODO OCC27414 ALL: TEST INCOMPLETE"
1+
puts "TODO OCC27414 ALL: Error : is WRONG because number of"
2+
puts "TODO OCC27414 ALL: Error : The area of result shape is"
3+
puts "TODO OCC27414 ALL: Error : The volume of result shape is"
44

55
restore [locate_data_file bug26917_dom-8092.t6c1_trim5_with_faces.brep] c
66

tests/offset/shape_type_i_c/XM1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ offsetparameter 1e-7 c i r
44
offsetload s 8
55
offsetperform result
66

7-
checkprops result -v 4.40128e+007 -s 1.81672e+006
7+
checkprops result -s 1.81645e+06 -v 4.40127e+07
88

99
unifysamedom result_unif result
10-
checknbshapes result_unif -edge 186 -face 64 -shell 1
10+
checknbshapes result_unif -wire 62 -face 62 -shell 1
1111

1212
checkview -display result_unif -2d -path ${imagedir}/${test_image}.png

0 commit comments

Comments
 (0)