File: bug23954

package info (click to toggle)
oce 0.18.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 301,548 kB
  • sloc: cpp: 1,190,609; ansic: 67,225; sh: 11,630; tcl: 7,954; cs: 5,221; python: 2,867; java: 1,522; makefile: 342; xml: 292; perl: 37
file content (24 lines) | stat: -rw-r--r-- 713 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
puts "TODO OCC23954 ALL: Error: result is not Toroidal surface"

puts "============"
puts "OCC23954"
puts "============"
puts ""
##########################################################
# BRepPrimAPI_MakeRevol fails to recognize a torus case
##########################################################

circle c_1 0 100 0 1 0 0 0 1 0 100
circle c_2 0 100 0 1 0 0 0 0 1 100
circle c_3 0 100 0 1 0 0 0 -1 0 100
circle c_4 0 100 0 1 0 0 0 0 1 10
circle c_5 0 100 0 1 0 0 0 0 1 120
for { set i 1 } { $i <= 5 } { incr i } {
  mkedge e c_$i
  revol r e 0 0 0 0 0 1 90
  mksurface s_$i r
  set info [dump s_$i]
  if { [regexp "SurfaceOfRevolution" $info] == 1 } {
    puts "Error: result is not Toroidal surface"
  }
}