-
Notifications
You must be signed in to change notification settings - Fork 283
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PATCH] 0031462: Modeling Algorithms - BOP result depends on the argu…
…ments order Eliminate numerical instability by ensuring that the tolerance of intersection entities is slightly grater than the actual distance to the shapes creating the entity. Original commit url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=commit;h=3f7e5e99d565e35f600da5f089b0fc7a3851fbde
- Loading branch information
Showing
9 changed files
with
95 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
puts "========" | ||
puts "0031462: Modeling Algorithms - BOP result depends on the arguments order" | ||
puts "========" | ||
puts "" | ||
|
||
restore [locate_data_file bug31462_obj.brep] s1 | ||
restore [locate_data_file bug31462_tools.brep] s2 | ||
|
||
tcopy s1 obj | ||
tcopy s2 sx | ||
bclearobjects | ||
bcleartools | ||
baddobjects obj | ||
eval baddtools [explode sx] | ||
bfillds | ||
bsplit result1 | ||
|
||
checkshape result1 | ||
if {![regexp "This shape seems to be OK" [bopcheck result1]]} { | ||
puts "Error: self-interfering result" | ||
} | ||
|
||
checknbshapes result1 -wire 19 -face 18 -shell 3 -solid 2 | ||
checkprops result1 -s 103.955 -v 38.7982 | ||
|
||
tcopy s1 obj | ||
tcopy s2 sx | ||
bclearobjects | ||
bcleartools | ||
baddobjects obj | ||
explode sx | ||
baddtools sx_4 sx_5 sx_6 sx_3 sx_2 sx_1 | ||
bfillds | ||
bsplit result2 | ||
|
||
checkshape result2 | ||
if {![regexp "This shape seems to be OK" [bopcheck result2]]} { | ||
puts "Error: self-interfering result" | ||
} | ||
|
||
checknbshapes result2 -ref [nbshapes result1] | ||
checkprops result2 -equal result1 | ||
|
||
checkview -display result1 -2d -path ${imagedir}/${test_image}.png |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters