1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00
asuraven 3b1129a546 0029723: Modeling Data - Get rid of second writing format (additional save of UV points)
Default BinTools_ShapeSet format version has been changed from 3 to 1.
BinMNaming_NamedShapeDriver (Bin OCAF) now writes shapes in 1st version of Binary format instead of 3rd.
XmlMNaming_NamedShapeDriver (Xml OCAF) now writes shapes in 1st version of ASCII  format instead of 2nd.

writebrep now by default writes into 1st binary format version instead of 3rd.
2020-12-23 19:30:48 +03:00

30 lines
1.0 KiB
Plaintext

puts "=========="
puts "0029723: Modeling Data - Get rid of second writing format (additional save of UV points)"
puts "=========="
puts ""
pload MODELING VISUALIZATION
box testBox 10 20 30
nurbsconvert nurbsBox testBox
writebrep nurbsBox "${imagedir}/${casename}_topBox1.brep" -version 1
readbrep "${imagedir}/${casename}_topBox1.brep" topBox1
checkprops topBox1 -equal nurbsBox
writebrep nurbsBox "${imagedir}/${casename}_topBox2.brep" -version 2
readbrep "${imagedir}/${casename}_topBox2.brep" topBox2
checkprops topBox2 -equal nurbsBox
writebrep nurbsBox "${imagedir}/${casename}_topBox3.bbrep" -version 1 -binary on
readbrep "${imagedir}/${casename}_topBox3.bbrep" topBox3
checkprops topBox3 -equal nurbsBox
writebrep nurbsBox "${imagedir}/${casename}_topBox4.bbrep" -version 2 -binary on
readbrep "${imagedir}/${casename}_topBox4.bbrep" topBox4
checkprops topBox4 -equal nurbsBox
writebrep nurbsBox "${imagedir}/${casename}_topBox5.bbrep" -version 3 -binary on
readbrep "${imagedir}/${casename}_topBox5.bbrep" topBox5
checkprops topBox5 -equal nurbsBox