mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-04 18:06:22 +03:00
BRepTools_ShapeSet now ignores myWithTriangles flag in case if triangulation is the only geometry representation.
44 lines
890 B
Plaintext
44 lines
890 B
Plaintext
puts "========"
|
|
puts "OCC27835"
|
|
puts "BinXCAF - handle correctly faces with NULL surface within BinTools_ShapeSet"
|
|
puts "========"
|
|
puts ""
|
|
|
|
set anImgDoc1 $imagedir/${casename}_doc1.png
|
|
set anImgDoc2 $imagedir/${casename}_doc2.png
|
|
set anImgDiff $imagedir/${casename}_diff.png
|
|
set aTestFile $imagedir/${casename}.xbf
|
|
|
|
pload XDE OCAF MODELING VISUALIZATION
|
|
|
|
restore [locate_data_file bug27821_nullsurf.brep] s
|
|
explode s F
|
|
|
|
NewDocument D BinXCAF
|
|
XAddShape D s
|
|
XSetColor D s_1 1 0 0
|
|
vclear
|
|
vinit View1
|
|
vaxo
|
|
XDisplay -dispMode 1 D
|
|
vfit
|
|
vrotate 3 0 0
|
|
vdump $anImgDoc1
|
|
|
|
file delete $aTestFile
|
|
StoreTriangulation 1
|
|
SaveAs D $aTestFile
|
|
Close D
|
|
|
|
XOpen $aTestFile D
|
|
file delete $aTestFile
|
|
vclear
|
|
XDisplay -dispMode 1 D
|
|
vaxo
|
|
vfit
|
|
vrotate 3 0 0
|
|
vdump $anImgDoc2
|
|
|
|
set aDiffRes [diffimage $anImgDoc2 $anImgDoc1 0.0 0 0 $anImgDiff]
|
|
if {$aDiffRes != 0} { puts "Error: document has changed after Save/Read" }
|