File: bug26369

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 (29 lines) | stat: -rw-r--r-- 1,027 bytes parent folder | download | duplicates (8)
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
puts "============"
puts "CR26369"
puts "============"
puts ""
###################################################################################
# Modeling Data - Geom_OffsetSurface direction is wrong for indirect conical surface
###################################################################################

restore [locate_data_file bug26369_conicsurf.brep] conic_face

mksurface conic_surf conic_face
offset conic_surf_offset conic_surf 0.05
mkface conic_face_offset conic_surf_offset

set sprops_s [sprops conic_face_offset]
set cog_x  -0.00408684
set cog_y   0.00408684
set cog_z  -0.03213030
set cog_tol 0.00000010

regexp {X += +([-0-9.+eE]+)} $sprops_s full res_cog_x
regexp {Y += +([-0-9.+eE]+)} $sprops_s full res_cog_y
regexp {Z += +([-0-9.+eE]+)} $sprops_s full res_cog_z

if { ([expr abs($cog_x - $res_cog_x)] > $cog_tol)
  || ([expr abs($cog_y - $res_cog_y)] > $cog_tol)
  || ([expr abs($cog_z - $res_cog_z)] > $cog_tol) } {
  puts "Error: The center of gravity for offset of conical surface is wrong."
}