0033661: Data Exchange, Step Import - Tessellated GDTs are not imported
[occt.git] / tests / bugs / caf / bug25536
CommitLineData
354c94b7 1puts "============"
30fa5f67 2puts "OCC25536: XmlMDataXtd_GeometryDriver doesn't support TDataXtd_SPLINE, TDataXtd_PLANE and TDataXtd_CYLINDER."
354c94b7 3puts "============"
4puts ""
354c94b7 5
6NewDocument Doc XmlOcaf
7
8# set attributes not supported by geometry driver before this issue fix
9Label Doc 0:2:1
10SetGeometry Doc 0:2:1 spl
11Label Doc 0:2:2
12SetGeometry Doc 0:2:2 pln
13Label Doc 0:2:3
14SetGeometry Doc 0:2:3 cyl
15
30fa5f67 16set aTmpFile ${imagedir}/${casename}.xml
17SaveAs Doc ${aTmpFile}
354c94b7 18Close Doc
19
20# check attributes are correctly restored
30fa5f67 21Open ${aTmpFile} Doc2
22file delete -force $aTmpFile
354c94b7 23
24set aType [GetGeometryType Doc2 0:2:1]
25if {${aType} != "spl"} {
26 puts "Error: Restored Geometry Type '${aType}' is not stored 'spl'"
27}
28set aType [GetGeometryType Doc2 0:2:2]
29if {${aType} != "pln"} {
30 puts "Error: Restored Geometry Type '${aType}' is not stored 'pln'"
31}
32set aType [GetGeometryType Doc2 0:2:3]
33if {${aType} != "cyl"} {
34 puts "Error: Restored Geometry Type '${aType}' is not stored 'cyl'"
35}
36
37Close Doc2