forked from Open-Cascade-SAS/OCCT
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
0033318: Data Exchange - Modifying the BRep flag after exporting the …
…shape Fixed condition for setting 'checked' flag
- Loading branch information
Showing
3 changed files
with
29 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
puts "===========================================================" | ||
puts "0033318: Data Exchange - Modifying the BRep flag after exporting the shape" | ||
puts "===========================================================" | ||
|
||
pload XDE | ||
|
||
set filepath [locate_data_file bug28620.brep] | ||
set f1 [open $filepath "r"] | ||
set string1 [read $f1] | ||
close $f1 | ||
|
||
set conf {provider.BREP.OCC.write.binary : 0} | ||
|
||
set aTmpFile ${imagedir}/tmpfile1.brep | ||
readfile sh1 $filepath | ||
writefile sh1 $aTmpFile -conf $conf | ||
|
||
set f2 [open $aTmpFile "r"] | ||
set string2 [read $f2] | ||
close $f2 | ||
|
||
set newstr [string trim $string2] | ||
if { [string first $newstr [string trim $string1]] == -1 } { | ||
puts "Error: strings is not equal" | ||
} | ||
|
||
file delete -force $aTmpFile |