File: bug23950

package info (click to toggle)
oce 0.17.2-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 297,992 kB
  • ctags: 203,291
  • sloc: cpp: 1,176,369; ansic: 67,206; sh: 11,647; tcl: 6,890; cs: 5,221; python: 2,867; java: 1,522; makefile: 338; xml: 292; perl: 37
file content (41 lines) | stat: -rw-r--r-- 1,021 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
puts "=========="
puts "OCC23950"
puts "=========="
puts ""
#################################################################################
# Names and visibility of points not saved when writing XCAF Document into STEP
#################################################################################

pload QAcommands

#switch on writing of vertices names and styles
param write.step.vertex.mode 1

set aFile ${imagedir}/bug23950.step

catch {file delete ${aFile}}

set info [OCC23950 ${aFile}]

if {[regexp "Write  Done" $info] != 1} {
  puts "Error: file was not written"
} else {
  puts "OK: file was written"
}

set is23950fixed "FALSE"
set file23950 [open ${aFile} RDONLY]
while {[eof $file23950] == 0} {
  set file23950line [string trim [gets $file23950]]
  if {[string first "Point1" $file23950line] != -1} {
    set is23950fixed "TRUE"
  }
}
close $file23950

if {[string compare $is23950fixed "FALSE"] == 0} {
  puts "ERROR: OCC23950 is reproduced"
}

#return default behavior
param write.step.vertex.mode 0