File: bug25232_4

package info (click to toggle)
opencascade 7.9.2%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 301,924 kB
  • sloc: cpp: 1,523,264; tcl: 10,159; cs: 5,173; java: 1,554; sh: 1,342; ansic: 827; xml: 699; makefile: 30; javascript: 22
file content (29 lines) | stat: -rw-r--r-- 783 bytes parent folder | download | duplicates (5)
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 "OCC25232"
puts "============"
puts ""
#########################################################################
# Functionality to create solids from set of shapes
#########################################################################

cylinder cyl 10
trimv cyl cyl -20 20
mkface fcyl cyl
cone con 45 0
trimv con1 con 0 15
trimv con2 con -15 0
mkface fcon1 con1
mkface fcon2 con2
plane pl 0 0 15 0 0 1
mkface fp pl -15 15 -15 15
sphere sph 0 0 0 12
mkface fsph sph

mkvolume result fcyl fcon1 fcon2 fp fsph
# 7 solids created

checkprops result -s 6725.11 
checkshape result

checknbshapes result -vertex 12 -edge 26 -wire 14 -face 14 -shell 7 -solid 7 -compsolid 0 -compound 1 -shape 81
checkview -display result -2d -path ${imagedir}/${test_image}.png